create_cart
Start a new Grubhub food order by adding a restaurant's first menu item to a cart, then set quantity, options, instructions, and delivery or pickup details.
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 |
|---|---|---|---|
| options | No | ||
| latitude | No | ||
| quantity | No | ||
| longitude | No | ||
| is_delivery | No | ||
| menu_item_id | Yes | ||
| restaurant_id | Yes | ||
| special_instructions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |