Set a quantity
set_quantitySet a product's cart quantity to a desired final amount, use 0 to remove it, then read the cart back for French grocery shopping.
Instructions
Sets a product's quantity in the cart (replaces the current one; 0 removes the product), then reads the cart back.
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>",
"quantity": "<quantity>",
"store": "<store>"
},
"name": "set_quantity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store | Yes | retailer (see list_stores) | |
| quantity | Yes | desired final quantity | |
| 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 |