Add / change cart items
update_cartAdd products to a Mercadona cart or set exact quantities in one call, including removing an item with quantity 0. Use units/pieces, or kilograms for weighted products; checkout is not included.
Instructions
Add products to the cart or change quantities, in one call. mode 'add' (default) adds to any existing quantity; 'set' sets the exact quantity (0 removes). Quantities are units/pieces (fruit too, e.g. 6 bananas); only products flagged sold_by_weight take kg (e.g. 0.5). Does NOT check out.
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": {
"items": "<items>"
},
"name": "update_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes |