Set quantity in Walmart.ca cart
set_cart_quantitySet the exact quantity of an item already in the signed-in cart, with 0 removing it. Use add_to_cart for items not yet in the cart.
Instructions
Set an item already in the signed-in cart to an exact quantity (0 removes it). Use add_to_cart for items not yet in the cart. Returns the new line total and cart subtotal.
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": "<product>",
"quantity": "<quantity>"
},
"name": "set_cart_quantity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product | Yes | Product id (as in get_cart) or walmart.ca product URL | |
| quantity | Yes | New quantity, 0-12 |