---
title: "Diet plans | Fitaily Docs"
description: "List and inspect plans, generate a new one, activate and extend. A generated plan replaces the previous active one, so confirm targets first."
url: "https://fitaily.com/docs/tools/diet-plans/en"
canonical: "https://fitaily.com/docs/tools/diet-plans/en"
lang: en
---

# 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`

Diet 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.

Parametry: `tab` (enum(mine|discover)), `search` (string), `activeOnly` (boolean)

### `get_diet_plan`

Diet 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.

Parametry: `id`* (string), `maxDays` (integer)

### `generate_diet_plan`

Generate 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.

Parametry: `template` (enum(balanced|highprotein|lowcarb|keto|vegan|vegetarian)), `calorieTarget` (integer), `proteinTarget` (number), `carbsTarget` (number), `fatTarget` (number), `durationDays` (integer), `mealCount` (integer), `tastePreference` (enum(mixed|sweet|savory)), `cookingTimePreference` (enum(little|medium|much)), `breakfastPreference` (enum(mixed|sweet|savory)), `tags` (string[]), `plannedStartDate`* (string), `seed` (integer)

### `activate_diet_plan`

Activate a diet plan: WRITE: make an existing diet plan the active one, optionally from a given start date. Confirm with the user first.

Parametry: `id`* (string), `startDate`* (string)

### `extend_diet_plan`

Extend a diet plan: WRITE: extend a diet plan by N more days (reuses the plan’s template and targets). Confirm with the user first.

Parametry: `id`* (string), `additionalDays`* (integer)

---

[Fitaily MCP na GitHubie](https://github.com/rafafau/fitaily-mcp)
