reorder
Adds items from a past order to the cart by matching names against the current menu, flags unavailable items and choices needed, then defers ordering to review_order.
Instructions
Add the items of a past order (order_id from get_order_history) to the cart, matched by name against the current menu. Reports items no longer on the menu (skipped) and items whose required choice could not be matched (needs_choice: ask the user, then use add_to_cart with the matched ids plus their pick). Nothing is ordered; continue with review_order.
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": "reorder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||