add_to_cart
Add a product to your cart or increase its quantity for an upcoming delivery. Use when you want to order more of an item.
Instructions
Add a NEW product to the basket or INCREASE the quantity of an existing product. Use this only when the quantity is going UP (e.g. adding a product for the first time, or bumping qty from 2 to 3). To DECREASE quantity or DELETE a product from the cart, use remove_from_cart instead. For flash deal products (free items from get_flash_deals), use add_flash_deal_to_cart instead. Requires authentication. Get productId and price from search_products or list_products.
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": "add_to_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 (the 'selling' field from search results) | |
| quantity | No | Target quantity to set (must be >= 1). Default: 1 | |
| productId | Yes | The product ID obtained from search_products or list_products |