Skip to main content
Glama

What a basket cost on an earlier date

price_basket_over_time
Read-onlyIdempotent

How 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

NameRequiredDescriptionDefault
itemsYesThe 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}.
storeNoThe 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_dateNoThe later date, YYYY-MM-DD. Left out: today.
from_dateYesThe earlier date, YYYY-MM-DD, e.g. 2026-08-06.

Output Schema

NameRequiredDescriptionDefault
noteNo
itemsNo
changeNototal_now minus total_then, euro
creditsNoWhat this answer cost the person's BasketWatch account and what is left. Missing on a free answer
to_dateNo
from_dateNo
total_nowNo
change_pctNo
total_thenNo
not_comparedNoLines not found, or not sold on one date
biggest_fallsNo
biggest_risesNo
items_unchangedNo
shelf_total_nowNo
shelf_change_pctNoChange in regular prices only: real price moves, without promotions
shelf_total_thenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changed
    • removedInput schema / $defs / BasketItem / properties / barcode / title
      Removed value: -"Barcode"
    • removedInput schema / $defs / BasketItem / properties / count / title
      Removed value: -"Count"
    • removedInput schema / $defs / BasketItem / properties / name / title
      Removed value: -"Name"
    • removedInput schema / $defs / BasketItem / properties / paid / title
      Removed value: -"Paid"
    • removedInput schema / $defs / BasketItem / properties / quantity / title
      Removed value: -"Quantity"
    • removedInput schema / $defs / BasketItem / properties / size / title
      Removed value: -"Size"
    • removedInput schema / $defs / BasketItem / properties / sku / title
      Removed value: -"Sku"
    • removedInput schema / $defs / BasketItem / properties / store / title
      Removed value: -"Store"
    • removedInput schema / $defs / BasketItem / title
      Removed value: -"BasketItem"
    • addedInput schema / properties / from_date / description
      Added value: +"The earlier date, YYYY-MM-DD, e.g. 2026-08-06."
    • removedInput schema / properties / from_date / title
      Removed value: -"From Date"
    • addedInput schema / properties / items / description
      Added value: +"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}."
    • removedInput schema / properties / items / title
      Removed value: -"Items"
    • changedInput schema / properties / store / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "aldi",
      +      "tesco",
      +      "supervalu",
      +      "dunnes",
      +      "lidl"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / store / description
      Added value: +"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."
    • removedInput schema / properties / store / title
      Removed value: -"Store"
    • addedInput schema / properties / to_date / description
      Added value: +"The later date, YYYY-MM-DD. Left out: today."
    • removedInput schema / properties / to_date / title
      Removed value: -"To Date"
    • removedInput schema / title
      Removed value: -"price_basket_over_timeArguments"
    • addedOutput schema / $defs / Credits
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "left": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Credits left on the account after it",
      +      "title": "Left"
      +    },
      +    "note": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Said when the balance is low, or when it cut this answer short",
      +      "title": "Note"
      +    },
      +    "used": {
      +      "description": "Credits this answer cost: one for each record it returned",
      +      "title": "Used",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "used"
      +  ],
      +  "title": "Credits",
      +  "type": "object"
      +}
    • addedOutput schema / properties / credits
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/Credits"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "What this answer cost the person's BasketWatch account and what is left. Missing on a free answer"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / $defs / BasketItem / properties / count
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "How many items in the pack, when not in name, e.g. 12 for a dozen eggs, 6 for a six pack. Not how many packs were bought: that is quantity",
      +  "title": "Count"
      +}
    • changedInput schema / $defs / BasketItem / properties / name / description
      Previous value: -"Brand, product and size in plain words, e.g. 'avonmore fresh milk 2l'"New value: +"Brand, product and size in plain words, e.g. 'avonmore fresh milk 2l', '12 eggs', 'dozen eggs'"
    • addedInput schema / $defs / BasketItem / properties / size
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The pack size wanted, when not in name, e.g. '2L', '500g': chooses that size at each store",
      +  "title": "Size"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / $defs / PriceOnDate / properties / clubcard_price / description
      Previous value: -"Tesco Clubcard price, Tesco only"New value: +"Member price where one applies: Tesco Clubcard, SuperValu Real Rewards or Lidl Plus"
  4. Changed1 schema field changed
    • changedInput schema / $defs / BasketItem / properties / store / description
      Previous value: -"aldi, tesco, supervalu or dunnes; defaults to the basket's store"New value: +"aldi, tesco, supervalu, dunnes or lidl; defaults to the basket's store"
  5. First observed

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses the nightly-since-May-2026 coverage boundary, a per-call 100-line cap, and the billing rule ('Each product compared costs one credit') — a real constraint an agent must plan around. It also explains how derived fields behave: the change_pct vs shelf_change_pct gap means promotions starting or ending, pack_changed is confirmed over three days of records, and not_compared holds lines missing from one date.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded: the what and the when-it-starts come first, then output semantics, then the credit cost at the end where it is least easily missed. It runs long because it also explains derived output fields, which an output schema already covers, so a few sentences could be trimmed without loss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so explaining change_pct, shelf_change_pct, biggest_rises/falls, pack_changed and not_compared is partly redundant, but each carries non-obvious semantics that a raw schema would not convey. What remains uncovered is failure/edge behavior: what happens when a date precedes the coverage window, or when the basket store and a line's store disagree.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents items, store, from_date and to_date; the baseline would be 3. The description adds genuine meaning on top: that each line is composed of name, sku (the retailer's printed number, with the line's words in name), barcode, store and quantity, and that the cap is 100 lines — disambiguating how sku and name relate when both are supplied.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific operation — how the cost of the same basket changed between two dates at the same store — and enumerates what comes back (per-product prices on both dates, promotion status, basket totals, movers). The temporal 'between two dates' framing is exactly what separates it from a single-date basket tool, so an agent can select it without opening the sibling schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the coverage windows (nightly since May 2026, Lidl since 17 October 2026) and the 100-line cap tell an agent when the tool will work, but nothing says when to prefer it over price_basket, compare_price_across_stores or get_price_history, nor what to do if the dates fall outside the recorded range.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources