add_to_cart
Add a menu item to an existing cart using restaurant and menu item IDs, with optional quantity, special instructions, and add-ons.
Instructions
add an item to an existing cart.
Args: cart_id: The cart ID to add to restaurant_id: The restaurant ID for the item menu_item_id: The menu item ID to add quantity: Number of this item (default 1) special_instructions: Special preparation instructions options: List of selected options/add-ons, each with {id, quantity}
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": {
"cart_id": "<cart_id>",
"restaurant_id": "<restaurant_id>",
"menu_item_id": "<menu_item_id>"
},
"name": "add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | Yes | ||
| restaurant_id | Yes | ||
| menu_item_id | Yes | ||
| quantity | No | ||
| special_instructions | No | ||
| options | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |