Compare a shopping list across stores
compare_basketRead-onlyIdempotent
Prices a shopping list at every store in the country: each store's total for the items it sells (with its delivery fee where the store publishes one), the cheapest single store, and the cheapest way to split the list between stores. Items are matched to products by their names, or exactly by productId.
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": {
"country": "<country>",
"items": "<items>"
},
"name": "compare_basket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of texts and amounts in the answer, as a BCP 47 tag (en, ru, uz, uz-Cyrl, kk, es, …). Default: the assistant's locale, else the country's main language. | |
| items | Yes | The shopping list (1 to 60 items). | |
| stores | No | Only these stores (ids from find_stores). Default: every store whose prices are compared. | |
| country | Yes | The country whose stores to read: UZ (Uzbekistan), KZ (Kazakhstan), RU (Russia), US (United States), GB or UK (United Kingdom). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| items | Yes | ||
| stores | Yes | the list at each store, cheapest complete first | |
| country | Yes | ||
| currency | Yes | ||
| bestSplit | No | the cheapest way to buy the list across stores | |
| cheapestStore | No | the cheapest store with the whole list, else the one with most of it | |
| missingEverywhere | Yes | items no store has |