Set basket quantity
update_basket_quantitySets an exact quantity for a product in a Migros basket; set quantity to 0 to remove the item and return the updated basket.
Instructions
Set an item's exact quantity in the basket. quantity=0 removes the item. Returns the updated basket. Requires authentication.
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": {
"productId": "<productId>",
"quantity": "<quantity>"
},
"name": "update_basket_quantity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | Yes | Exact target quantity. 0 removes the item. | |
| productId | Yes | Product UID. | |
| shoppingListId | No |