update_diet_plan
Edit an existing diet plan (confirm-gated). Pass planId plus only the fields to change. meals, if given, REPLACES the whole meal list — send the full intended list. Each meal follows the create_diet_plan shape (name, scheduledTime 'HH:mm', order, days, section, calories, macros, description, ingredients).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"planId": "<planId>"
},
"name": "update_diet_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meals | No | ||
| title | No | ||
| planId | Yes | ||
| confirm | No | Must be true to actually execute. If false/omitted, returns a preview only. | |
| endDate | No | ||
| startDate | No | YYYY-MM-DD | |
| description | No |