Fitaily MCP
Nutrition log
Daily summary, meal history, goals and “what to eat next” ideas. This is the heart of the log — where the assistant reads the day’s balance and records new entries.
get_today_nutrition
readnutrition:readToday's nutrition
Daily nutrition: consumed calories/macros, goals, remaining budget AND the itemized meal list. Defaults to today.
Parameters
| Parameter | Type | Description |
|---|---|---|
| date | string | Date as YYYY-MM-DD. Defaults to today. |
get_meal_history
readnutrition:readMeal history
Meal entries over a date range, optionally filtered by meal type.
Parameters
| Parameter | Type | Description |
|---|---|---|
| from * | string | Range start (YYYY-MM-DD). |
| to * | string | Range end (YYYY-MM-DD). |
| mealType | enum(breakfast|lunch|dinner|snack) | Filter by meal type. |
| limit default: 30 | integer | Max entries (1–50). |
get_nutrition_goals
readnutrition:readNutrition goals
Current daily calorie and macro goals.
No parameters.
suggest_meal
readnutrition:readMeal suggestion
What to eat next for a given meal type: the backend splits the remaining daily budget across meals and ranks candidates from the user's history, recipes and products. Returns projected macros and a match score; falls back to recipes when nothing fits.
Parameters
| Parameter | Type | Description |
|---|---|---|
| mealType * | enum(breakfast|lunch|dinner|snack) | Meal type. |
| date | string | Date (YYYY-MM-DD). Defaults to today. |
| limit default: 5 | integer | Max suggestions (1–10). |
update_nutrition_goals
writenutrition:writeUpdate nutrition goals
WRITE: change daily calorie/macro goals. Confirm the new numbers with the user first.
Parameters
| Parameter | Type | Description |
|---|---|---|
| dailyCaloriesGoal | integer | Calorie goal (500–15000). |
| proteinGoal | number | Protein goal in grams (0–1000). |
| carbsGoal | number | Carbs goal in grams (0–1000). |
| fatGoal | number | Fat goal in grams (0–1000). |
add_meal
writenutrition:writeLog a meal
WRITE: log a meal. Ask the user to confirm first (dish, meal type, macros). Macros are required — look them up with search_foods, never invent them. clientRequestId: generate once per user request (uuid) and reuse it if you retry, so a retry never duplicates the meal.
Parameters
| Parameter | Type | Description |
|---|---|---|
| mealType * | enum(breakfast|lunch|dinner|snack) | Meal type. |
| foodName * | string | Dish name (1–200 chars). |
| calories * | number | Calories (0–5000). |
| protein * | number | Protein in grams (0–500). |
| carbs * | number | Carbs in grams (0–500). |
| fat * | number | Fat in grams (0–500). |
| servingSize | string | Serving description (≤120 chars). |
| date | string | Date and time (ISO 8601). |
| clientRequestId | string | Idempotency key (uuid), 1–128 chars. |
update_meal
writenutrition:writeUpdate a meal
WRITE: edit a logged meal by id (from get_today_nutrition/get_meal_history). Confirm with the user first.
Parameters
| Parameter | Type | Description |
|---|---|---|
| id * | string | Meal id. |
| mealType | enum(breakfast|lunch|dinner|snack) | New meal type. |
| foodName | string | New dish name. |
| calories | number | Calories. |
| protein | number | Protein (g). |
| carbs | number | Carbs (g). |
| fat | number | Fat (g). |
| servingSize | string | Serving description. |
delete_meal
destructivenutrition:writeDelete a meal
WRITE: delete a logged meal by id. Confirm with the user first.
Parameters
| Parameter | Type | Description |
|---|---|---|
| id * | string | Meal id. |