Save plan
save_planSave a plan of several sessions or meals at once, such as a week of workouts and meals, when the person asks for the plan to be saved. Use this rather than many create_workout and create_meal calls whenever a plan holds more than one session or meal, so the person sees the whole plan as one. Give every workout a note of one or two short lines on what the session is for and how to approach it, such as Full body with dumbbells and a pull-up bar; start pull-ups at 3 × 4: it shows on the plan's card and in the app while training. Each workout and meal is exactly what create_workout and create_meal take: find every exercise with list_exercises and every food with list_foods first, and read get_targets before planning meals. Everything is saved as planned. An unknown exercise saves nothing. Otherwise each piece is saved on its own, and failed lists any refused, by kind and its place in the input: fix and save only those again. Give every workout and meal its own requestId, so after an error or timeout the same call can be sent again and saves only what is missing. Say the plan is saved only after this returns.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meals | No | Each meal to plan, exactly as create_meal takes it. Its state is always planned | |
| workouts | No | Each session to plan, exactly as create_workout takes it. Its state is always planned |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| meals | Yes | ||
| failed | Yes | ||
| workouts | Yes |