Add several products to basket
add_items_to_basketAdds multiple products to a Migros basket in one call, replacing existing quantities, and returns availability, item count, and totals; requires authentication.
Instructions
Add several products to the user's basket in one call, e.g. the ingredients of a recipe. Each quantity replaces the one already in the list. Returns each product's quantity and availability (e.g. AVAILABLE, UNAVAILABLE, INSUFFICIENT_STOCK), the item count and totals. 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": {
"items": "<items>"
},
"name": "add_items_to_basket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Products and quantities, each product once. | |
| verbose | No | true returns the whole list. Default: only the changed item(s), the item count and the totals. | |
| shoppingListId | No | Optional list ID from get_shopping_lists; omit to use the first list. |