Compare items across stores
compare_itemsFor each item, the best comparable flyer offer at each banner near a place (priced offers first, the item itself by name, then lowest unit price), plus per-banner totals. Items with no flyer offer come back null: try shelf_prices for those.
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": "compare_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| near | No | Where the shopper is: a Canadian postal code ("M6H 2B6"), an FSA ("M6H"), or "lat,lng". | |
| items | Yes | E.g. ["large eggs", "chicken thighs", "rice"]. | |
| banners | No | Limit to these banners, e.g. ["no-frills", "food-basics", "freshco"]. | |
| radiusKm | No | Search radius in km around `near` (default 5). |