Fitaily MCP
Diet plans
List and inspect plans, generate a new one, activate and extend. A generated plan replaces the previous active one, so confirm targets first.
get_diet_plans
readnutrition:readDiet plans
The user’s diet plans (or public templates with tab=discover). Returns headline targets only — call get_diet_plan for the day-by-day meals.
Parameters
| Parameter | Type | Description |
|---|---|---|
| tab | enum(mine|discover) | Mine or discover. |
| search | string | Name filter (1–120). |
| activeOnly | boolean | Only the active plan. |
get_diet_plan
readnutrition:readDiet plan details
Full diet plan by id: day-by-day meals with per-meal and per-day macro totals. Use maxDays to keep long plans readable.
Parameters
| Parameter | Type | Description |
|---|---|---|
| id * | string | Plan id. |
| maxDays default: 7 | integer | Max days to expand (1–60). |
generate_diet_plan
destructivenutrition:writeGenerate a diet plan
WRITE: generate a new diet plan and make it the active one (replaces the previous plan). Needs at least 3 recipes in the library or the public catalog — the catalog alone is enough. Templates: balanced, highprotein, lowcarb, keto, vegan, vegetarian. Confirm targets with the user first.
Parameters
| Parameter | Type | Description |
|---|---|---|
| template | enum(balanced|highprotein|lowcarb|keto|vegan|vegetarian) | Plan template. |
| calorieTarget | integer | Calorie target (1000–6000). |
| proteinTarget | number | Protein target (g). |
| carbsTarget | number | Carbs target (g). |
| fatTarget | number | Fat target (g). |
| durationDays | integer | Duration (1–30 days). |
| mealCount | integer | Meal count (2–6). |
| tastePreference | enum(mixed|sweet|savory) | Taste preference. |
| cookingTimePreference | enum(little|medium|much) | Cooking time preference. |
| breakfastPreference | enum(mixed|sweet|savory) | Breakfast preference. |
| tags | string[] | Tags (max 6). |
| plannedStartDate * | string | Planned start date (YYYY-MM-DD). |
| seed | integer | Determinism seed (0–1e6). |
activate_diet_plan
writenutrition:writeActivate a diet plan
WRITE: make an existing diet plan the active one, optionally from a given start date. Confirm with the user first.
Parameters
| Parameter | Type | Description |
|---|---|---|
| id * | string | Plan id. |
| startDate * | string | Start date (YYYY-MM-DD). |
extend_diet_plan
writenutrition:writeExtend a diet plan
WRITE: extend a diet plan by N more days (reuses the plan’s template and targets). Confirm with the user first.
Parameters
| Parameter | Type | Description |
|---|---|---|
| id * | string | Plan id. |
| additionalDays * | integer | Additional days (1–30). |