cart_add_many
Add multiple grocery items to your cart at once with a single confirmation. If any item fails, you receive a clear list of failures while successful items remain in the cart.
Instructions
Add multiple items to cart with a single confirmation.
This is more efficient than calling cart_add multiple times and provides a single confirmation gate for the entire batch.
IMPORTANT: This operation uses STRICT success semantics. If ANY item fails to add, the entire operation is reported as a FAILURE. Items that were successfully added will remain in the cart, but you'll receive a clear list of which items failed.
Args: items: List of items, each with product_id, sku_id, and quantity confirm: Must be True to actually add items (human-in-the-loop safety)
Returns: On success: All items added with details On failure: List of failed items with reasons (successful items stay in cart)
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": "cart_add_many"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | List of items to add. Each item must have: product_id (short ID), sku_id (full SKU), quantity (>=1). Maximum 100 items per call. | |
| confirm | No | Set to True to execute the bulk add. Default False shows preview of items to be added. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||