Saved Meals reference
Read, create, update and delete whole recipes with their ingredients and serving yield. Nutrition is for the whole recipe; log one serving to add one share.
The DailyGoal API is not available on the Free plan. It works while Pro is active, including during an introductory offer. See plans.
Usage notes
The saved meal's nutrition is for the whole recipe. If a 4-serving recipe has 800 kcal, log_food_entry with savedMealId and servings 1 adds 200 kcal. search_foods reports nutrition for one recipe serving.
Ingredients describe the whole recipe, using each ingredient food's servings. Meals accept 1 to 100 ingredient rows. Free app accounts can create up to 3 saved meals; Pro has no plan cap. The API requires Pro or a trial.
To update, read the existing meal and send every field you want to keep. Saving with an id replaces the managed fields and ingredient list. Deletion fails with conflict while diary entries use the meal.
All operations require Pro or a trial. GET and DELETE take query parameters; other methods take a JSON body. The input table also includes any MCP-only idempotency_key argument; REST sends it as a header. See retrying creates. Example ids are synthetic; find your own with the search and list operations.
Operations
get_saved_meal: Get saved mealsave_saved_meal: Save saved mealdelete_saved_meal: Delete saved meal
get_saved_meal
GET https://api.dailygoal.fit/v1/saved-meals
MCP tool get_saved_meal · Read-only · DailyGoal data only
Get one of the user's saved meals with its ingredients, servings, details and nutrition. Find the id with search_foods and kind saved_meal. To change the meal use save_saved_meal; to record that the user ate it use log_food_entry.
Input
| Field | Type | Description |
|---|---|---|
| id | string | A saved meal id from search_foods with kind saved_meal, or from save_saved_meal. |
Full input schema, including bounds and nested alternatives (MCP)
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "A saved meal id from search_foods with kind saved_meal, or from save_saved_meal."
}
},
"required": [
"id"
],
"additionalProperties": true
}Output
| Field | Type | Description |
|---|---|---|
| id | string | Saved meal id. Pass it to log_food_entry as savedMealId. |
| name | string | |
| descriptionoptional | string | |
| categoryoptional | "breakfast" | "lunch" | "dinner" | "snack" | "recipe" | Where the app files the meal. recipe is the app's default. |
| servings | number | How many servings the recipe makes, as shown in the app. |
| prepTimeMinutesoptional | number | |
| cookTimeMinutesoptional | number | |
| difficultyoptional | number | |
| nutrition | object | Totals for the whole recipe. log_food_entry with savedMealId and servings 1 logs these totals divided by the recipe's servings. search_foods returns that per-serving nutrition. |
| nutrition.calories | number | kcal |
| nutrition.protein | number | grams |
| nutrition.carbs | number | grams |
| nutrition.fat | number | grams |
| nutrition.alcohol | number | grams |
| ingredients | object[] | |
| ingredients[].food | object | |
| ingredients[].food.id | string | |
| ingredients[].food.kind | "food" | "custom_food" | "saved_meal" | food: the DailyGoal catalogue. custom_food: a food the user created. saved_meal: a meal the user saved, logged as one entry. |
| ingredients[].food.name | string | |
| ingredients[].food.brandNameoptional | string | |
| ingredients[].servings | number | |
| ingredients[].nutrition | object | This ingredient's share of the recipe. |
| ingredients[].nutrition.calories | number | kcal |
| ingredients[].nutrition.protein | number | grams |
| ingredients[].nutrition.carbs | number | grams |
| ingredients[].nutrition.fat | number | grams |
| ingredients[].nutrition.alcohol | number | grams |
Full output schema
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Saved meal id. Pass it to log_food_entry as savedMealId."
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"category": {
"type": "string",
"enum": [
"breakfast",
"lunch",
"dinner",
"snack",
"recipe"
],
"description": "Where the app files the meal. recipe is the app's default."
},
"servings": {
"type": "number",
"description": "How many servings the recipe makes, as shown in the app."
},
"prepTimeMinutes": {
"type": "number"
},
"cookTimeMinutes": {
"type": "number"
},
"difficulty": {
"type": "number"
},
"nutrition": {
"type": "object",
"properties": {
"calories": {
"type": "number",
"description": "kcal"
},
"protein": {
"type": "number",
"description": "grams"
},
"carbs": {
"type": "number",
"description": "grams"
},
"fat": {
"type": "number",
"description": "grams"
},
"alcohol": {
"type": "number",
"description": "grams"
}
},
"required": [
"calories",
"protein",
"carbs",
"fat",
"alcohol"
],
"additionalProperties": true,
"description": "Totals for the whole recipe. log_food_entry with savedMealId and servings 1 logs these totals divided by the recipe's servings. search_foods returns that per-serving nutrition."
},
"ingredients": {
"type": "array",
"items": {
"type": "object",
"properties": {
"food": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"food",
"custom_food",
"saved_meal"
],
"description": "food: the DailyGoal catalogue. custom_food: a food the user created. saved_meal: a meal the user saved, logged as one entry."
},
"name": {
"type": "string"
},
"brandName": {
"type": "string"
}
},
"required": [
"id",
"kind",
"name"
],
"additionalProperties": true
},
"servings": {
"type": "number"
},
"nutrition": {
"type": "object",
"properties": {
"calories": {
"type": "number",
"description": "kcal"
},
"protein": {
"type": "number",
"description": "grams"
},
"carbs": {
"type": "number",
"description": "grams"
},
"fat": {
"type": "number",
"description": "grams"
},
"alcohol": {
"type": "number",
"description": "grams"
}
},
"required": [
"calories",
"protein",
"carbs",
"fat",
"alcohol"
],
"additionalProperties": true,
"description": "This ingredient's share of the recipe."
}
},
"required": [
"food",
"servings",
"nutrition"
],
"additionalProperties": true
}
}
},
"required": [
"id",
"name",
"servings",
"nutrition",
"ingredients"
],
"additionalProperties": true
}Example request
curl "https://api.dailygoal.fit/v1/saved-meals?id=j579h2c5m8q1x4v7n0r3t6w9b2y5k8dc" \
-H "Authorization: Bearer $DAILYGOAL_API_TOKEN"{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_saved_meal",
"arguments": {
"id": "j579h2c5m8q1x4v7n0r3t6w9b2y5k8dc"
}
}
}Example response
Synthetic data. REST returns this object as the body; MCP returns it as structuredContent.
{
"id": "j579h2c5m8q1x4v7n0r3t6w9b2y5k8dc",
"name": "Overnight oats with yoghurt and blueberries",
"description": "Soak the oats in the yoghurt overnight, then top with blueberries.",
"category": "breakfast",
"servings": 2,
"prepTimeMinutes": 5,
"difficulty": 1,
"nutrition": {
"calories": 652.3,
"protein": 41.7,
"carbs": 94.9,
"fat": 11.8,
"alcohol": 0
},
"ingredients": [
{
"food": {
"id": "j57c2m8k4q1x9v3d6n0r5t7w2b8y4h1a",
"kind": "food",
"name": "Rolled oats"
},
"servings": 2,
"nutrition": {
"calories": 305.7,
"protein": 10.6,
"carbs": 54.2,
"fat": 5.2,
"alcohol": 0
}
},
{
"food": {
"id": "j572k9d3m6q8x1v4n7r0t2w5b8y3h6ca",
"kind": "custom_food",
"name": "Greek yoghurt 2%"
},
"servings": 2,
"nutrition": {
"calories": 219.6,
"protein": 29.7,
"carbs": 11.7,
"fat": 6,
"alcohol": 0
}
},
{
"food": {
"id": "j574p8c1m3q6x9v2n5r8t1w4b7y0k3fe",
"kind": "food",
"name": "Blueberries"
},
"servings": 2,
"nutrition": {
"calories": 127,
"protein": 1.4,
"carbs": 29,
"fat": 0.6,
"alcohol": 0
}
}
]
}Errors
unauthorized(401)origin_not_allowed(403)misdirected_request(421)subscription_required(403)rate_limited(429)validation_failed(400)not_found(404)conflict(409)internal_error(500)
save_saved_meal
POST https://api.dailygoal.fit/v1/saved-meals
MCP tool save_saved_meal · Changes data · Destructive · DailyGoal data only · Accepts Idempotency-Key
Create a saved meal from foods and custom foods, or update one by passing its id. Replaces every field and the whole ingredient list, so read the meal with get_saved_meal before an update. Ingredients describe the whole recipe; servings is its yield. It records nothing eaten: call log_food_entry with the returned id as savedMealId and servings 1 to log one recipe serving. For a single food the catalogue lacks, use save_custom_food.
Input
| Field | Type | Description |
|---|---|---|
| idoptional | string | The saved meal to update, from search_foods (kind saved_meal) or a previous save_saved_meal. Omit it to create a new saved meal. |
| name | string | Meal name, for example 'Overnight oats'. |
| descriptionoptional | string | A short description. Blank or omitted means none. |
| categoryoptional | "breakfast" | "lunch" | "dinner" | "snack" | "recipe" | Where the app files the meal. recipe is the app's default. |
| servings | integer | How many servings the whole recipe makes. Logging 1 serving adds 1/this number of the recipe's nutrition. At least 1. |
| prepTimeMinutesoptional | integer | Preparation time in minutes. |
| cookTimeMinutesoptional | integer | Cooking time in minutes. |
| difficultyoptional | integer | How hard the recipe is, from 1 (easy) to 5. |
| ingredients | object[] | The whole recipe's ingredients, from 1 to 100. An update replaces the list. |
| ingredients[].id | string | A food or custom food id from search_foods (kind food or custom_food). Saved meals cannot be ingredients. |
| ingredients[].servings | number | How many of the food's servings go into the whole recipe, for example 2 for two 40 g servings of oats. |
| idempotency_keyoptional | string | Optional. A unique value for this create, for example a UUID. Retrying with the same key and arguments within 24 hours returns the first result instead of creating a duplicate. |
Full input schema, including bounds and nested alternatives (MCP)
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The saved meal to update, from search_foods (kind saved_meal) or a previous save_saved_meal. Omit it to create a new saved meal."
},
"name": {
"type": "string",
"pattern": "\\S",
"description": "Meal name, for example 'Overnight oats'."
},
"description": {
"type": "string",
"description": "A short description. Blank or omitted means none."
},
"category": {
"type": "string",
"enum": [
"breakfast",
"lunch",
"dinner",
"snack",
"recipe"
],
"description": "Where the app files the meal. recipe is the app's default."
},
"servings": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"description": "How many servings the whole recipe makes. Logging 1 serving adds 1/this number of the recipe's nutrition. At least 1."
},
"prepTimeMinutes": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Preparation time in minutes."
},
"cookTimeMinutes": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Cooking time in minutes."
},
"difficulty": {
"type": "integer",
"minimum": 1,
"maximum": 5,
"description": "How hard the recipe is, from 1 (easy) to 5."
},
"ingredients": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "A food or custom food id from search_foods (kind food or custom_food). Saved meals cannot be ingredients."
},
"servings": {
"type": "number",
"exclusiveMinimum": 0,
"description": "How many of the food's servings go into the whole recipe, for example 2 for two 40 g servings of oats."
}
},
"required": [
"id",
"servings"
],
"additionalProperties": true
},
"minItems": 1,
"maxItems": 100,
"description": "The whole recipe's ingredients, from 1 to 100. An update replaces the list."
},
"idempotency_key": {
"type": "string",
"maxLength": 255,
"description": "Optional. A unique value for this create, for example a UUID. Retrying with the same key and arguments within 24 hours returns the first result instead of creating a duplicate."
}
},
"required": [
"name",
"servings",
"ingredients"
],
"additionalProperties": true
}Output
| Field | Type | Description |
|---|---|---|
| created | boolean | True when this call created the saved meal, false when it updated one. |
| savedMeal | object | |
| savedMeal.id | string | Saved meal id. Pass it to log_food_entry as savedMealId. |
| savedMeal.name | string | |
| savedMeal.descriptionoptional | string | |
| savedMeal.categoryoptional | "breakfast" | "lunch" | "dinner" | "snack" | "recipe" | Where the app files the meal. recipe is the app's default. |
| savedMeal.servings | number | How many servings the recipe makes, as shown in the app. |
| savedMeal.prepTimeMinutesoptional | number | |
| savedMeal.cookTimeMinutesoptional | number | |
| savedMeal.difficultyoptional | number | |
| savedMeal.nutrition | object | Totals for the whole recipe. log_food_entry with savedMealId and servings 1 logs these totals divided by the recipe's servings. search_foods returns that per-serving nutrition. |
| savedMeal.nutrition.calories | number | kcal |
| savedMeal.nutrition.protein | number | grams |
| savedMeal.nutrition.carbs | number | grams |
| savedMeal.nutrition.fat | number | grams |
| savedMeal.nutrition.alcohol | number | grams |
| savedMeal.ingredients | object[] | |
| savedMeal.ingredients[].food | object | |
| savedMeal.ingredients[].food.id | string | |
| savedMeal.ingredients[].food.kind | "food" | "custom_food" | "saved_meal" | food: the DailyGoal catalogue. custom_food: a food the user created. saved_meal: a meal the user saved, logged as one entry. |
| savedMeal.ingredients[].food.name | string | |
| savedMeal.ingredients[].food.brandNameoptional | string | |
| savedMeal.ingredients[].servings | number | |
| savedMeal.ingredients[].nutrition | object | This ingredient's share of the recipe. |
| savedMeal.ingredients[].nutrition.calories | number | kcal |
| savedMeal.ingredients[].nutrition.protein | number | grams |
| savedMeal.ingredients[].nutrition.carbs | number | grams |
| savedMeal.ingredients[].nutrition.fat | number | grams |
| savedMeal.ingredients[].nutrition.alcohol | number | grams |
Full output schema
{
"type": "object",
"properties": {
"created": {
"type": "boolean",
"description": "True when this call created the saved meal, false when it updated one."
},
"savedMeal": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Saved meal id. Pass it to log_food_entry as savedMealId."
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"category": {
"type": "string",
"enum": [
"breakfast",
"lunch",
"dinner",
"snack",
"recipe"
],
"description": "Where the app files the meal. recipe is the app's default."
},
"servings": {
"type": "number",
"description": "How many servings the recipe makes, as shown in the app."
},
"prepTimeMinutes": {
"type": "number"
},
"cookTimeMinutes": {
"type": "number"
},
"difficulty": {
"type": "number"
},
"nutrition": {
"type": "object",
"properties": {
"calories": {
"type": "number",
"description": "kcal"
},
"protein": {
"type": "number",
"description": "grams"
},
"carbs": {
"type": "number",
"description": "grams"
},
"fat": {
"type": "number",
"description": "grams"
},
"alcohol": {
"type": "number",
"description": "grams"
}
},
"required": [
"calories",
"protein",
"carbs",
"fat",
"alcohol"
],
"additionalProperties": true,
"description": "Totals for the whole recipe. log_food_entry with savedMealId and servings 1 logs these totals divided by the recipe's servings. search_foods returns that per-serving nutrition."
},
"ingredients": {
"type": "array",
"items": {
"type": "object",
"properties": {
"food": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"food",
"custom_food",
"saved_meal"
],
"description": "food: the DailyGoal catalogue. custom_food: a food the user created. saved_meal: a meal the user saved, logged as one entry."
},
"name": {
"type": "string"
},
"brandName": {
"type": "string"
}
},
"required": [
"id",
"kind",
"name"
],
"additionalProperties": true
},
"servings": {
"type": "number"
},
"nutrition": {
"type": "object",
"properties": {
"calories": {
"type": "number",
"description": "kcal"
},
"protein": {
"type": "number",
"description": "grams"
},
"carbs": {
"type": "number",
"description": "grams"
},
"fat": {
"type": "number",
"description": "grams"
},
"alcohol": {
"type": "number",
"description": "grams"
}
},
"required": [
"calories",
"protein",
"carbs",
"fat",
"alcohol"
],
"additionalProperties": true,
"description": "This ingredient's share of the recipe."
}
},
"required": [
"food",
"servings",
"nutrition"
],
"additionalProperties": true
}
}
},
"required": [
"id",
"name",
"servings",
"nutrition",
"ingredients"
],
"additionalProperties": true
}
},
"required": [
"created",
"savedMeal"
],
"additionalProperties": true
}Example request
The REST example uses OpenSSL to generate a fresh key for a new create. To retry that create, rerun only the curl command with the same key and input. You may send that key as idempotency_key in the MCP arguments too.
DAILYGOAL_IDEMPOTENCY_KEY="$(openssl rand -hex 16)"
curl -X POST "https://api.dailygoal.fit/v1/saved-meals" \
-H "Authorization: Bearer $DAILYGOAL_API_TOKEN" \
-H "Idempotency-Key: $DAILYGOAL_IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Overnight oats with yoghurt and blueberries","description":"Soak the oats in the yoghurt overnight, then top with blueberries.","category":"breakfast","servings":2,"prepTimeMinutes":5,"difficulty":1,"ingredients":[{"id":"j57c2m8k4q1x9v3d6n0r5t7w2b8y4h1a","servings":2},{"id":"j572k9d3m6q8x1v4n7r0t2w5b8y3h6ca","servings":2},{"id":"j574p8c1m3q6x9v2n5r8t1w4b7y0k3fe","servings":2}]}'{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "save_saved_meal",
"arguments": {
"name": "Overnight oats with yoghurt and blueberries",
"description": "Soak the oats in the yoghurt overnight, then top with blueberries.",
"category": "breakfast",
"servings": 2,
"prepTimeMinutes": 5,
"difficulty": 1,
"ingredients": [
{
"id": "j57c2m8k4q1x9v3d6n0r5t7w2b8y4h1a",
"servings": 2
},
{
"id": "j572k9d3m6q8x1v4n7r0t2w5b8y3h6ca",
"servings": 2
},
{
"id": "j574p8c1m3q6x9v2n5r8t1w4b7y0k3fe",
"servings": 2
}
]
}
}
}Example response
Synthetic data. REST returns this object as the body; MCP returns it as structuredContent.
{
"created": true,
"savedMeal": {
"id": "j579h2c5m8q1x4v7n0r3t6w9b2y5k8dc",
"name": "Overnight oats with yoghurt and blueberries",
"description": "Soak the oats in the yoghurt overnight, then top with blueberries.",
"category": "breakfast",
"servings": 2,
"prepTimeMinutes": 5,
"difficulty": 1,
"nutrition": {
"calories": 652.3,
"protein": 41.7,
"carbs": 94.9,
"fat": 11.8,
"alcohol": 0
},
"ingredients": [
{
"food": {
"id": "j57c2m8k4q1x9v3d6n0r5t7w2b8y4h1a",
"kind": "food",
"name": "Rolled oats"
},
"servings": 2,
"nutrition": {
"calories": 305.7,
"protein": 10.6,
"carbs": 54.2,
"fat": 5.2,
"alcohol": 0
}
},
{
"food": {
"id": "j572k9d3m6q8x1v4n7r0t2w5b8y3h6ca",
"kind": "custom_food",
"name": "Greek yoghurt 2%"
},
"servings": 2,
"nutrition": {
"calories": 219.6,
"protein": 29.7,
"carbs": 11.7,
"fat": 6,
"alcohol": 0
}
},
{
"food": {
"id": "j574p8c1m3q6x9v2n5r8t1w4b7y0k3fe",
"kind": "food",
"name": "Blueberries"
},
"servings": 2,
"nutrition": {
"calories": 127,
"protein": 1.4,
"carbs": 29,
"fat": 0.6,
"alcohol": 0
}
}
]
}
}Errors
unauthorized(401)origin_not_allowed(403)misdirected_request(421)subscription_required(403)rate_limited(429)validation_failed(400)not_found(404)conflict(409)idempotency_conflict(409)limit_exceeded(409)internal_error(500)
delete_saved_meal
DELETE https://api.dailygoal.fit/v1/saved-meals
MCP tool delete_saved_meal · Changes data · Destructive · DailyGoal data only
Delete one of the user's saved meals from their library. Its ingredient foods stay. It fails with conflict while diary entries use the meal. To remove something the user logged, use delete_food_entry instead.
Input
| Field | Type | Description |
|---|---|---|
| id | string | A saved meal id from search_foods with kind saved_meal, or from save_saved_meal. |
Full input schema, including bounds and nested alternatives (MCP)
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "A saved meal id from search_foods with kind saved_meal, or from save_saved_meal."
}
},
"required": [
"id"
],
"additionalProperties": true
}Output
| Field | Type | Description |
|---|---|---|
| id | string | |
| deleted | true |
Full output schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"deleted": {
"type": "boolean",
"enum": [
true
]
}
},
"required": [
"id",
"deleted"
],
"additionalProperties": true
}Example request
curl -X DELETE "https://api.dailygoal.fit/v1/saved-meals?id=j579h2c5m8q1x4v7n0r3t6w9b2y5k8dc" \
-H "Authorization: Bearer $DAILYGOAL_API_TOKEN"{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "delete_saved_meal",
"arguments": {
"id": "j579h2c5m8q1x4v7n0r3t6w9b2y5k8dc"
}
}
}Example response
Synthetic data. REST returns this object as the body; MCP returns it as structuredContent.
{
"id": "j579h2c5m8q1x4v7n0r3t6w9b2y5k8dc",
"deleted": true
}Errors
unauthorized(401)origin_not_allowed(403)misdirected_request(421)subscription_required(403)rate_limited(429)validation_failed(400)not_found(404)conflict(409)internal_error(500)