Add to Rappi cart
rappi_add_to_cartAdd products to your Rappi cart using product and store IDs, with optional quantity. Requires explicit user confirmation to modify the cart without proceeding to checkout.
Instructions
Gated write. Requires RAPPI_ALLOW_MUTATIONS=true AND explicit_user_intent=true. 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": {
"product_id": "<product_id>"
},
"name": "rappi_add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | ||
| store_id | No | ||
| product_id | Yes | ||
| response_format | No | markdown | |
| explicit_user_intent | No | Must be true after the user explicitly asked for this write. |