Skip to main content
Glama

search_products

Read-only

Search Danish grocery stores for products and get prices, unit prices, offers and EAN codes. Sort by price or unit price to find the cheapest items across one or more stores.

Instructions

Search products in one or more stores. Returns price, price per kg/l, offers and EAN when known. Stores rank by relevance and put cheap products far down: when the human asks for the cheapest, use sort="unit_price" (per kg/l/stk) or "price". For a whole shopping list, use compare_basket.

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_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo"unit_price" is per kg/l/stk.relevance
limitNoProducts per store, 1-25.
queryYesWhat to find, in Danish, e.g. "letmælk".
storesNoStores to ask, e.g. ["nemlig", "rema1000"]. Leave out to ask every store.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.7.1
    • addedInput schema / properties / limit / description
      Added value: +"Products per store, 1-25."
    • addedInput schema / properties / query / description
      Added value: +"What to find, in Danish, e.g. \"letmælk\"."
    • addedInput schema / properties / sort / description
      Added value: +"\"unit_price\" is per kg/l/stk."
    • addedInput schema / properties / stores / description
      Added value: +"Stores to ask, e.g. [\"nemlig\", \"rema1000\"]. Leave out to ask every store."
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover readOnly, openWorld, and non-destructive, so the description's job is the behavioral context they cannot express. It delivers that with the non-obvious ranking caveat that stores rank by relevance and push cheap products far down, which directly affects how an agent should call it. It stops short of mentioning pagination limits or per-store result caps beyond the schema's limit field.

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

Conciseness5/5

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

Three sentences, front-loaded with purpose, then return contents, then the ranking pitfall and the correct sort escape hatch, then the sibling pointer. Every clause carries decision-relevant information and there is no filler.

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 four-parameter read-only search with full schema coverage but no output schema, the description supplies what is missing: what comes back (price, unit price, offers, EAN) and the ranking behavior that would otherwise cause an agent to return bad answers. Nothing needed to call it correctly is absent.

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 earns more by explaining the semantics of sort choice in terms of user intent rather than restating the enum values. The per-kg/l/stk nuance and the price-vs-unit_price trade-off are meaningful additions beyond the schema's terse "unit_price is per kg/l/stk."

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 description opens with a specific verb and resource ("Search products") plus scope ("in one or more stores"), and names the return payload (price, price per kg/l, offers, EAN). It also distinguishes itself from the sibling compare_basket, so an agent can route correctly without reading either schema.

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?

It gives an explicit conditional rule: when the human asks for the cheapest, use sort="unit_price" or "price", and for a whole shopping list, use compare_basket instead. That is both a when-to-use and a when-to-use-something-else clause tied to concrete triggers.

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