remove_from_cart
Reduce the quantity of a product in your Milkbasket cart or remove it entirely by setting quantity to zero. Specify product ID and price to update or delete the item.
Instructions
DECREASE the quantity of a product in the basket or DELETE it entirely. Use this when the quantity is going DOWN (e.g. reducing from 3 to 2, or removing a product). Set quantity=0 to completely remove the product from the cart. To ADD a new product or INCREASE quantity, use add_to_cart instead. Requires authentication. Get productId and price from get_basket or get_extended_basket.
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>",
"price": "<price>"
},
"name": "remove_from_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Delivery date in YYYY-MM-DD format. Defaults to tomorrow if not provided. | |
| price | Yes | The selling price of the product | |
| quantity | No | New target quantity. Use 0 to completely remove the product. Default: 0 | |
| productId | Yes | The product ID to decrease or remove |