Save week
save_weekCanonical saving operation. Saves a completed menu draft (every dinner selected) as a reusable Saved Week, keeping the exact recipes, order, slot labels, locks and per-dinner servings. Returns savedWeekId alongside the menuDraftId; create_shopping_list accepts that same menuDraftId, and open_saved_week recreates the draft from savedWeekId if the draft has expired. Leaves This Week unchanged and creates no shopping list. Idempotent: saving the same draft revision again returns the same Saved Week (status already_saved). A draft changed since it was read returns a conflict; get_menu_draft then gives the current revision. Requires a linked Chop it account.
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": {
"menuDraftId": "<menuDraftId>"
},
"name": "save_week"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| menuDraftId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| title | Yes | ||
| appUrl | Yes | ||
| status | Yes | ||
| message | Yes | ||
| diversity | Yes | ||
| dinnerCount | Yes | ||
| menuDraftId | Yes | ||
| savedWeekId | Yes | ||
| allowedNextActions | Yes |