Add to cart
ametller_add_to_cartAdd a product to the cart by product ID. Increases quantity if already present. Returns updated cart with total.
Instructions
Add a product to the real cart by id (get the id from ametller_search_products first). If already present, increases the quantity. Returns the updated cart with its total.
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": "ametller_add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | How many to add (default 1) | |
| product_id | Yes | Product id from ametller_search_products, e.g. '1251' |