create_cart
Creates a new shopping cart for a restaurant order by adding a menu item, supporting delivery or pickup with special instructions and add-ons.
Instructions
create a new cart with the first item.
Args: restaurant_id: The restaurant ID to order from 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} latitude: Delivery latitude longitude: Delivery longitude is_delivery: True for delivery, False for pickup
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": {
"restaurant_id": "<restaurant_id>",
"menu_item_id": "<menu_item_id>"
},
"name": "create_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| restaurant_id | Yes | ||
| menu_item_id | Yes | ||
| quantity | No | ||
| special_instructions | No | ||
| options | No | ||
| latitude | No | ||
| longitude | No | ||
| is_delivery | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |