Add to basket
add_to_basketAdds a product to a Migros basket by product ID and sets its target quantity, replacing any existing quantity; check the basket first to add on top.
Instructions
Add a product to the user's basket. If it is already there, its quantity is replaced by the new one, not added to (check get_basket first to add on top). Returns the updated basket. 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": {
"productId": "<productId>"
},
"name": "add_to_basket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | Target quantity. Defaults to 1. REPLACES existing quantity, not increment. | |
| productId | Yes | Product UID from search_products (e.g. '100049709'). | |
| shoppingListId | No | Optional list ID from get_shopping_lists; omit to use the first list. |