Set Alphamega cart quantities
cart_setSet exact product quantities in a logged-in Alphamega cart, replacing current amounts or removing items with 0, then return per-product results and the updated cart.
Instructions
Set the quantity of one or more products in the user's real cart on alphamega.com.cy. Quantities are absolute, not increments: 2 means the cart will hold exactly 2, and 0 removes the product. Products not listed are left untouched. Returns per-product results (the shop may cap or reject a quantity) and the resulting cart. Requires the user to be logged in (see cart_login).
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": {
"items": "<items>"
},
"name": "cart_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Products and the exact quantities the cart should hold. |