Add items to iFood cart
ifood_add_to_cartAdd items to an iFood cart by providing merchant ID and item list. Prepares the cart for a later checkout step.
Instructions
POST /v1/carts on cw-marketplace (401 JSON no-jwt). Item subpaths 404. Dual-gated. Does not checkout.
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": {
"merchant_id": "<merchant_id>",
"items": "<items>"
},
"name": "ifood_add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| address_id | No | ||
| merchant_id | Yes | ||
| response_format | No | markdown | |
| explicit_user_intent | No | Must be true after the user explicitly asked for this write. |