Update Lunch Order Draft
update_lunch_order_draftUpdate an unpaid draft lunch order's items or service date before finalizing it. Replaces line items, applies required choices, and recomputes the total from menu prices.
Instructions
Replaces the items and/or menu_date of an unpaid draft order before it is finalized - the caller must own the draft and it must still be in draft status (order_id from create_lunch_order_draft). Pass the complete items list: it replaces the draft's items wholesale and the total is recomputed from menu prices times quantity plus choice adjustments. When an item has choice groups, ask the user for each required group one at a time and pass the picks as selected_choices, same as create_lunch_order_draft. Only draft orders can be updated; once finalized, use cancel_my_lunch_order. WRITE - confirm the new contents, choices and total with the user. Collect each required input one at a time and confirm the details with the user before calling.
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": {
"order_id": "<order_id>"
},
"name": "update_lunch_order_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Replacement line items (menu_item_id and quantity from get_lunch_menu, plus selected_choices for menu picks); replaces all existing items when provided | |
| order_id | Yes | Draft order ID from create_lunch_order_draft - must still be in draft status | |
| menu_date | No | New date the lunch is served, YYYY-MM-DD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Order status (draft) | |
| orderId | No | Updated draft order ID |