add_flash_deal_to_cart
Add a free Mega Flash Deal product to your cart. For flash deals, replace the normal add-to-cart; on eligibility error, query flash deal status to resolve.
Instructions
Add a Mega Flash Deal product to the cart for free. Use this instead of add_to_cart for flash deal items (price is always 0). Requires the productId from get_flash_deals. flashDealId defaults to 11732. Try adding directly — if it fails with an eligibility error, then call get_flash_deal_status to diagnose (e.g. basket is empty, deal expired, or max quantity already reached) and guide the user accordingly. Do NOT call get_flash_deal_status before every add — only use it to explain a failure. 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>"
},
"name": "add_flash_deal_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Delivery date in YYYY-MM-DD format (defaults to tomorrow) | |
| productId | Yes | The product ID from get_flash_deals | |
| flashDealId | No | The flash deal ID from get_flash_deal_status (default: 11732) |