Skip to main content
Glama

search_products

Read-only

Find products by keyword across BILLA, SPAR, HOFER and dm, then filter by diet, sale status or max price and sort by price or unit price for grocery comparisons.

Instructions

Search products by keyword at every chain (or the given chains) at once, e.g. "hafermilch" or "milka". Put a brand in the query.

Returns one entry per chain: {total, next_offset, has_more, hits}, or a note when the chain was left out or sorted here.

Args: query: Free-text search term, German works best. diet: Keep only vegan, vegetarian, organic, gluten_free or lactose_free products. on_sale: Only products on sale right now. max_price: Highest price in EUR. sort: "" (relevance, default), "price" (cheapest first) or "unit_price" (cheapest per kg / l / piece, for comparing). Where a chain cannot sort itself it is done on its 60 most relevant hits, which a note then says. rows: Hits per chain, at most 20. Default 5. offset: Paging offset per chain. Default 0.

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
dietNo
rowsNo
sortNo
queryYes
chainsNo
offsetNo
on_saleNo
max_priceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say readOnly and openWorld; the description goes much further by disclosing the per-chain return shape ({total, next_offset, has_more, hits}), the 'note' emitted when a chain is excluded or sorted locally, and the important fallback that client-side sorting happens on only the 60 most relevant hits. Those are non-obvious behaviors an agent cannot get from the annotations or schema.

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?

Purpose, then return shape, then Args — well front-loaded and scannable. The only waste is mild redundancy: the sort fallback behavior is described in the body of the return-shape paragraph and then repeated under 'sort' in Args, which costs a few lines without adding information.

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 an 8-parameter, multi-chain search with no output schema, the definition covers everything an agent needs: what is searched, how results are shaped per chain, paging via offset/next_offset, the rows cap, and the local-sort caveat. Nothing material is left to guesswork.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden and does: every parameter is explained with meaning and constraints — rows capped at 20 with default 5, offset default 0, max_price in EUR, on_sale as 'right now', the five diet values, and each sort mode including what unit_price actually compares. This is exactly the compensation a zero-coverage schema requires.

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 by keyword') plus the key scope detail — it queries every chain simultaneously unless 'chains' narrows it. Example queries ('hafermilch', 'milka') and the brand hint make it immediately distinguishable from get_product (single item) and browse_category (taxonomy traversal).

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?

It gives real usage context: put a brand in the query, German works best, and 'unit_price' is the sort to pick 'for comparing'. What's missing is any explicit routing statement naming alternatives (e.g., 'use get_product once you have an id' or 'use browse_category when you have no keyword'), so the agent must infer when this is the wrong tool.

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