Save Nutrition Plan
save_nutrition_planReplace the active weekly nutrition plan by generating a full week of meals, deleting existing days and meals. Best for whole-week creation; use targeted meal/day updates for small tweaks.
Instructions
Creates the week's nutrition plan. IMPORTANT: there is always exactly one active plan - calling this REPLACES whatever plan currently exists (deleting it and its days/meals) rather than creating a second one. Use this to generate/regenerate the whole week; for smaller tweaks to specific meals or days, prefer update_nutrition_meal / update_nutrition_day / update_nutrition_plan instead so the rest of the week isn't thrown away. Before calling this, check get_training_preferences (body stats + food preferences/restrictions) and ideally get_workout_history/get_recovery_status so the plan reflects the user's actual training and goals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | The full week, one entry per day, each with its ordered meals | |
| name | Yes | Plan name, e.g. "Week of July 14" | |
| notes | No | Free-form plan-level notes | |
| startDate | No | ISO 8601 date/time this week starts (defaults to now) | |
| aiGenerationPrompt | No | The prompt that produced this plan, if you generated it |