Add to cart
add_to_cartAdds specified units of a product to an existing grocery cart and reads the cart back to confirm the updated quantity.
Instructions
Adds units of a product on top of those already present, then reads the cart back to confirm.
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": {
"product_id": "<product_id>",
"store": "<store>"
},
"name": "add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store | Yes | retailer (see list_stores) | |
| quantity | No | sale units to add | |
| product_id | Yes | retailer product identifier (id field of search_products) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| store | Yes | ||
| confirmed | Yes | true if the cart read back holds the targeted quantity | |
| product_id | Yes | ||
| cart_total_eur | Yes | ||
| expected_quantity | Yes |