Optimize Shopping Cart
optimize_cartFind the cheapest way to buy multiple products together: computes the optimal split across shops — which items to order from which shop — accounting for each shop's shipping costs and free-shipping thresholds, and returns the lowest achievable total including shipping. Takes an array of EAN barcodes. For accurate results, call get_best_price for each EAN first, then call optimize_cart.
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": {
"eans": "<eans>"
},
"name": "optimize_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eans | Yes | Array of EAN barcodes (8–14 digit numbers as strings, e.g. '4524667749493'). NOT URLs. | |
| country | No | Country for pricing and shipping (DE or AT, default DE) | DE |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guarantee | No | ||
| disclosure | No | ||
| optimization | Yes | ||
| savings_info | No | ||
| guarantee_note | No | ||
| stale_cache_warning | No | ||
| excluded_stale_offers | No |