Skip to main content
Glama

Search UK grocery prices

search_grocery_prices
Read-only

Search UK supermarket prices for ONE product, cheapest store first, with the app's filters and sorts: brands, stores, ownBrandOnly, onOfferOnly, category, diet; sort by price, unit_price, biggest_saving. For a cheaper swap, search at the user's store sorted by price or unit_price. To buy, give the user each price's storeUrl, never a link you build. Two or more items or a recipe: call price_shopping_list once, never item by item.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_grocery_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
dietNoProducts with every label: UK claim thresholds on Open Food Facts data (ODbL), not certified
sortNorelevance (default); price: cheapest pack first; unit_price: cheapest per kg, litre or item; biggest_saving: largest £ off; biggest_saving_percent: largest % off (savings sorts show only offers); price_high, unit_price_high: dearest first
limitNo5 by default; keep it when paging
queryNoe.g. 'Heinz baked beans 415g'. Optional with brands, category or ownBrandOnly.
brandsNoSpelt as earlier results' brand field, e.g. ['Heinz']
cursorNonextCursor of the previous page
storesNoOnly these stores' products and prices
categoryNoOnly this aisle
onOfferOnlyNoOnly products on offer, loyalty prices included
ownBrandOnlyNoOnly supermarket own brands, at the stores given

Output Schema

NameRequiredDescriptionDefault
queryYes
productsYes
totalHitsYes
nextCursorYes
suggestedCategoryYesThe aisle most of the query's best matches sit in: pass it as category to drop matches from other aisles

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / sort / description
      Previous value: -"relevance (default); unit_price: cheapest per kg, litre or item; price: cheapest pack; biggest_saving: largest discount"New value: +"relevance (default); price: cheapest pack first; unit_price: cheapest per kg, litre or item; biggest_saving: largest £ off; biggest_saving_percent: largest % off (savings sorts show only offers); price_high, unit_price_high: dearest first"
    • changedInput schema / properties / sort / enum
      Previous value: -[
      -  "relevance",
      -  "unit_price",
      -  "price",
      -  "biggest_saving"
      -]New value: +[
      +  "relevance",
      +  "unit_price",
      +  "price",
      +  "biggest_saving",
      +  "biggest_saving_percent",
      +  "price_high",
      +  "unit_price_high"
      +]
  2. Changed8 schema fields changed
    • changedInput schema / properties / brands / description
      Previous value: -"Only these brands, spelt as the brand field of earlier results shows them, e.g. ['Heinz', 'Branston']"New value: +"Spelt as earlier results' brand field, e.g. ['Heinz']"
    • changedInput schema / properties / cursor / description
      Previous value: -"nextCursor from the previous page, to get the next one"New value: +"nextCursor of the previous page"
    • changedInput schema / properties / diet / description
      Previous value: -"Only products carrying every one of these labels. The nutrition labels apply UK claim thresholds to Open Food Facts per-100g or per-100ml data (Open Database Licence) and skip products without it; vegetarian is a conservative match. Neither is a certified claim."New value: +"Products with every label: UK claim thresholds on Open Food Facts data (ODbL), not certified"
    • changedInput schema / properties / limit / description
      Previous value: -"Products per page, 5 by default, at most 20. Keep it the same when paging."New value: +"5 by default; keep it when paging"
    • changedInput schema / properties / ownBrandOnly / description
      Previous value: -"Only the supermarkets' own brands (Tesco, Sainsbury's, Aldi and so on), limited to the stores given"New value: +"Only supermarket own brands, at the stores given"
    • changedInput schema / properties / query / description
      Previous value: -"What to look for, e.g. 'Heinz baked beans 415g' or 'oat milk'. Needed unless brands, category or ownBrandOnly narrow the search."New value: +"e.g. 'Heinz baked beans 415g'. Optional with brands, category or ownBrandOnly."
    • changedInput schema / properties / sort / description
      Previous value: -"relevance (default); unit_price, cheapest per kg, litre or item first, for comparing pack sizes; price, cheapest pack first; biggest_saving, largest discount first"New value: +"relevance (default); unit_price: cheapest per kg, litre or item; price: cheapest pack; biggest_saving: largest discount"
    • changedInput schema / properties / stores / description
      Previous value: -"Only products sold at these stores, and only their prices. Leave out for every store."New value: +"Only these stores' products and prices"
  3. Changed2 schema fields changed
    • addedOutput schema / properties / products / items / properties / ownBrand
      Added value: +{
      +  "description": "A supermarket's own brand; skip these for a brand-only ask.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / products / items / required
      Previous value: -[
      -  "productId",
      -  "name",
      -  "brand",
      -  "size",
      -  "cheapestStore",
      -  "cheapestPricePence",
      -  "cheapestPrice",
      -  "productUrl",
      -  "prices"
      -]New value: +[
      +  "productId",
      +  "name",
      +  "brand",
      +  "ownBrand",
      +  "size",
      +  "cheapestStore",
      +  "cheapestPricePence",
      +  "cheapestPrice",
      +  "productUrl",
      +  "prices"
      +]
  4. Changed1 schema field changed
    • addedInput schema / properties / diet
      Added value: +{
      +  "description": "Only products carrying every one of these labels. The nutrition labels apply UK claim thresholds to Open Food Facts per-100g or per-100ml data (Open Database Licence) and skip products without it; vegetarian is a conservative match. Neither is a certified claim.",
      +  "items": {
      +    "enum": [
      +      "vegetarian",
      +      "high-protein",
      +      "low-sugar",
      +      "high-fibre",
      +      "low-fat"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 5,
      +  "minItems": 1,
      +  "type": "array"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / cursor / maxLength
      Previous value: -1200New value: +1291
  6. Changed2 schema fields changed
    • addedOutput schema / properties / suggestedCategory
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "Meat, Poultry & Seafood",
      +        "Frozen Foods",
      +        "Drinks & Beverages",
      +        "Snacks & Candy",
      +        "Dairy & Milk Alternatives",
      +        "Fruits & Vegetables",
      +        "Bread & Baked Goods",
      +        "Ready Meals",
      +        "Cooking Ingredients",
      +        "Grains & Cereals",
      +        "Home & Household",
      +        "Personal Care",
      +        "Health & Supplements",
      +        "Baby & Toddler",
      +        "Plant-Based",
      +        "World Foods",
      +        "Pet Care",
      +        "Books & Media",
      +        "Toys & Games",
      +        "Clothing & Accessories",
      +        "Electricals & Tech",
      +        "Uncategorised"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The aisle most of the query's best matches sit in: pass it as category to drop matches from other aisles"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "query",
      -  "products",
      -  "totalHits",
      -  "nextCursor"
      -]New value: +[
      +  "query",
      +  "products",
      +  "totalHits",
      +  "nextCursor",
      +  "suggestedCategory"
      +]
  7. Changed15 schema fields changed
    • addedInput schema / properties / brands
      Added value: +{
      +  "description": "Only these brands, spelt as the brand field of earlier results shows them, e.g. ['Heinz', 'Branston']",
      +  "items": {
      +    "maxLength": 100,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
    • addedInput schema / properties / category
      Added value: +{
      +  "description": "Only this aisle",
      +  "enum": [
      +    "Meat, Poultry & Seafood",
      +    "Frozen Foods",
      +    "Drinks & Beverages",
      +    "Snacks & Candy",
      +    "Dairy & Milk Alternatives",
      +    "Fruits & Vegetables",
      +    "Bread & Baked Goods",
      +    "Ready Meals",
      +    "Cooking Ingredients",
      +    "Grains & Cereals",
      +    "Home & Household",
      +    "Personal Care",
      +    "Health & Supplements",
      +    "Baby & Toddler",
      +    "Plant-Based",
      +    "World Foods",
      +    "Pet Care",
      +    "Books & Media",
      +    "Toys & Games",
      +    "Clothing & Accessories",
      +    "Electricals & Tech",
      +    "Uncategorised"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "nextCursor from the previous page, to get the next one",
      +  "maxLength": 1200,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Products per page, 5 by default, at most 20. Keep it the same when paging.",
      +  "maximum": 20,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / onOfferOnly
      Added value: +{
      +  "description": "Only products on offer, loyalty prices included",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / ownBrandOnly
      Added value: +{
      +  "description": "Only the supermarkets' own brands (Tesco, Sainsbury's, Aldi and so on), limited to the stores given",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"What to look for, e.g. 'Heinz baked beans 415g' or 'oat milk'"New value: +"What to look for, e.g. 'Heinz baked beans 415g' or 'oat milk'. Needed unless brands, category or ownBrandOnly narrow the search."
    • addedInput schema / properties / sort
      Added value: +{
      +  "description": "relevance (default); unit_price, cheapest per kg, litre or item first, for comparing pack sizes; price, cheapest pack first; biggest_saving, largest discount first",
      +  "enum": [
      +    "relevance",
      +    "unit_price",
      +    "price",
      +    "biggest_saving"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / stores
      Added value: +{
      +  "description": "Only products sold at these stores, and only their prices. Leave out for every store.",
      +  "items": {
      +    "enum": [
      +      "tesco",
      +      "sainsburys",
      +      "asda",
      +      "aldi",
      +      "morrisons",
      +      "coop",
      +      "waitrose",
      +      "iceland",
      +      "bm",
      +      "boots",
      +      "superdrug",
      +      "savers",
      +      "ocado"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 13,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "query"
      -]
    • addedOutput schema / properties / nextCursor
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / products / items / properties / prices / items / properties / loyaltyCard
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / products / items / properties / prices / items / required
      Previous value: -[
      -  "store",
      -  "storeName",
      -  "pricePence",
      -  "price",
      -  "regularPricePence",
      -  "offer",
      -  "unitPrice",
      -  "storeUrl"
      -]New value: +[
      +  "store",
      +  "storeName",
      +  "pricePence",
      +  "price",
      +  "regularPricePence",
      +  "offer",
      +  "loyaltyCard",
      +  "unitPrice",
      +  "storeUrl"
      +]
    • addedOutput schema / properties / totalHits
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "query",
      -  "products"
      -]New value: +[
      +  "query",
      +  "products",
      +  "totalHits",
      +  "nextCursor"
      +]
  8. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), so the description's job is to add operational context, which it does: results are ordered cheapest store first, each price carries a storeUrl, and the agent must hand over that URL rather than synthesise one. Pagination behaviour (cursor/limit) is left entirely to the schema, which keeps it from a 5.

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?

Front-loaded with the single-product scope and ordering, then routes to alternatives, then states the link policy, then the multi-item escape hatch. Dense and largely waste-free, though re-listing filter and sort names that already carry schema descriptions is mild duplication.

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

Completeness5/5

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

For a 10-parameter, open-ended search with an output schema and annotations already in place, the description supplies exactly the missing decision layer: one product only, where to go for cheaper swaps, where to go for baskets, and what to hand the user to buy.

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 baseline is 3, but the description adds practical meaning on top: the filter set is enumerated as a coherent capability list and sort is narrowed to the two values that matter for substitution hunting (price, unit_price). The default result ordering (cheapest store first) is stated nowhere in the schema, so this is genuine added value.

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?

States a specific verb and resource ('Search UK supermarket prices') plus the key scoping constraint 'for ONE product, cheapest store first'. It also distinguishes itself cleanly from the sibling price_shopping_list by naming that alternative for multi-item baskets.

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

Usage Guidelines5/5

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

Explicit routing in both directions: use this tool for a single product, call price_shopping_list once for two or more items or a recipe, and use the user's store with price/unit_price sorting when hunting a cheaper swap. It also gives a hard 'never' rule for building purchase links.

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