update_cart_item
Change the quantity of a line item in a Grubhub cart, or set it to 0 to remove the item.
Instructions
Update the quantity of an item in the cart.
Args: cart_id: The cart ID line_item_id: The line item ID to update quantity: New quantity (0 to remove)
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>",
"line_item_id": "<line_item_id>",
"quantity": "<quantity>"
},
"name": "update_cart_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | Yes | ||
| quantity | Yes | ||
| line_item_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |