Skip to main content
Glama

Search supermarket deals

search_offers
Read-onlyIdempotent

Search current weekly supermarket deals in Germany and Austria to find where a product is on sale or compare offers across retailers by ZIP code.

Instructions

Searches the current supermarket deals (offers from weekly leaflets) on Marktguru in Germany or Austria. Returns the total number of matches and up to limit offers, each with title (brand, product, description), price in euros, retailer, the date the offer ends, the discount in percent against the old price where known, and a link. Only current offers are listed, no regular prices. Use it to find where a product is on sale, or to compare the deals of several retailers; one search per product, with OR for alternatives. Results depend on the location: zip and country default to the configuration, else Germany and 10115 (Berlin). Without a stored API key, the first search reads one from the Marktguru website and stores it in ~/.marktguru/config.json; nothing else is written.

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": {
      "query": "<query>"
    },
    "name": "search_offers"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipNoZIP code of the area whose stores count, 5 digits in Germany or 4 in Austria, e.g. `10115`. Default: the configured ZIP code, else 10115 in Germany and 1010 in Austria
limitNoMost offers to return. Default: 10
queryYesProduct to search, in German, with the Marktguru syntax: words, "exact phrase", OR, * as wildcard, ( ) for groups; AND and NOT are not supported. E.g. `milch`, `"erdnuss snips"`, `kellys OR manner`, `kell*`
formatNotext: readable list; json: compact offers; json-full: the complete API responsetext
countryNoCountry: de (Germany) or at (Austria), matching the ZIP code. Default: the configured country, else de
retailerNoOnly offers of retailers whose name contains this, ignoring case, e.g. `BILLA` or `rewe`. Searches up to 100 offers and filters them; `total` is then the number of offers of matching retailers

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.4.0
    • changedInput schema / properties / country / description
      Previous value: -"Country: de (Germany) or at (Austria)"New value: +"Country: de (Germany) or at (Austria), matching the ZIP code. Default: the configured country, else de"
    • changedInput schema / properties / limit / description
      Previous value: -"Number of offers (default: 10)"New value: +"Most offers to return. Default: 10"
    • changedInput schema / properties / query / description
      Previous value: -"Marktguru query, e.g. `milch`, `\"erdnuss snips\"`, `kellys OR manner`"New value: +"Product to search, in German, with the Marktguru syntax: words, \"exact phrase\", OR, * as wildcard, ( ) for groups; AND and NOT are not supported. E.g. `milch`, `\"erdnuss snips\"`, `kellys OR manner`, `kell*`"
    • changedInput schema / properties / retailer / description
      Previous value: -"Only offers of retailers whose name contains this, e.g. BILLA"New value: +"Only offers of retailers whose name contains this, ignoring case, e.g. `BILLA` or `rewe`. Searches up to 100 offers and filters them; `total` is then the number of offers of matching retailers"
    • changedInput schema / properties / zip / description
      Previous value: -"ZIP code for location-based results"New value: +"ZIP code of the area whose stores count, 5 digits in Germany or 4 in Austria, e.g. `10115`. Default: the configured ZIP code, else 10115 in Germany and 1010 in Austria"
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive) and open-world access, and the description adds genuinely new behavior: the return shape and field list, the fact that results are location-dependent, the zip/country fallback chain, and a first-run side effect that reads an API key from the website and writes it to ~/.marktguru/config.json. That side-effect disclosure is precisely the kind of detail annotations cannot express.

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 core purpose, then defaults, then the API-key caveat, so an agent can stop reading early. It is dense rather than padded, though the defaults for zip and country are repeated twice within the same description and could be trimmed.

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?

With no output schema, the description carries the return-value burden and does so fully (total count, per-offer title, price, retailer, end date, discount, link). Combined with location defaults and the auth/bootstrap note, an agent has everything needed to call it correctly and interpret the result.

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

Parameters3/5

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

Schema coverage is 100%, so zip, limit, query syntax, format, country and retailer semantics are already documented in the schema, and the description largely restates the zip/country defaults. It adds only that results are capped at `limit` and that the response includes a total, which is marginal value over the structured fields. Baseline 3 is appropriate.

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 (searches current supermarket deals from weekly leaflets) plus the geographic scope (Germany or Austria) and an explicit boundary: current offers only, no regular prices. That boundary alone lets an agent tell it apart from any regular-price or catalog lookup tool.

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

Usage Guidelines4/5

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

Gives concrete use cases (find where a product is on sale, compare deals across retailers) and a usage convention (one search per product, use OR for alternatives). It stops short of stating when NOT to use it or naming an alternative tool, but the intended context is unambiguous.

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

Deploy Server

Other Tools