Set quantity
set_quantitySet the exact quantity of a product in your cart. Use 0 to remove the item. Returns the updated cart.
Instructions
Set the exact quantity of a product in the cart. Quantity 0 removes it. Returns the updated 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": {
"product_id": "<product_id>",
"quantity": "<quantity>"
},
"name": "set_quantity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | Yes | Exact quantity (0 removes) | |
| product_id | Yes | Product id |