What a basket cost on an earlier date
price_basket_over_timeHow the cost of the same basket changed between two dates, at the store it was bought from: each product's price on both dates, whether it was on promotion, the basket total on each date, and the products that moved it. BasketWatch has recorded every product's price every night since May 2026 (Lidl's since 17 October 2026). Up to 100 lines per call; each line takes name, sku (the retailer's printed item number, with the line's words in name), barcode, store and quantity.
change_pct is the change in what the basket cost (promotions included); shelf_change_pct is regular prices only, so the gap between the two is promotions starting or ending, not price rises. biggest_rises and biggest_falls list the lines that moved most; pack_changed marks a product whose pack size changed, confirmed over three days of records (a smaller pack at the same price is a hidden rise). Lines in not_compared were not found, or not sold on one of the dates.
Each product compared costs one credit.
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>",
"from_date": "<from_date>"
},
"name": "price_basket_over_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | The lines, up to 100, e.g. [{'name': 'avonmore fresh milk 2l', 'quantity': 2}, {'name': 'brennans wholemeal bread'}]; for a receipt add sku and paid: {'sku': '100685955', 'name': 'dunnes baked beans', 'quantity': 2, 'paid': 1.30}. | |
| store | No | The shop the receipt is from (aldi, tesco, supervalu, dunnes or lidl), used for any line that names none. Leave it out for a shopping list. | |
| to_date | No | The later date, YYYY-MM-DD. Left out: today. | |
| from_date | Yes | The earlier date, YYYY-MM-DD, e.g. 2026-08-06. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| items | No | ||
| change | No | total_now minus total_then, euro | |
| credits | No | What this answer cost the person's BasketWatch account and what is left. Missing on a free answer | |
| to_date | No | ||
| from_date | No | ||
| total_now | No | ||
| change_pct | No | ||
| total_then | No | ||
| not_compared | No | Lines not found, or not sold on one date | |
| biggest_falls | No | ||
| biggest_rises | No | ||
| items_unchanged | No | ||
| shelf_total_now | No | ||
| shelf_change_pct | No | Change in regular prices only: real price moves, without promotions | |
| shelf_total_then | No |