Skip to main content
Glama

Search products

search_products
Read-onlyIdempotent

Use this when the user wants to find food products by name or brand, such as "find oat milks" or "Nutella jars in Germany". Pass the words to search for and optionally a country (English name or two-letter code) and a limit of up to 10. Returns each product's barcode, name, brands and Nutri-Score; use lookup_barcode for the full entry.

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
limitNoHow many products to return, up to 10 (default 5)
queryYesWhat to look for, such as "oat milk" or a brand and product name
countryNoOptional country to limit to, as an English name or two-letter code, such as "France" or "US"

Output Schema

NameRequiredDescriptionDefault
queryYes
noticeYes
statusYes
messageNo
productsYes
attributionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedOutput schema / properties / note_from_openkrill
      Removed value: -{
      -  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      -  "type": "string"
      -}
  2. Changed1 schema field changed
    • addedOutput schema / properties / note_from_openkrill
      Added value: +{
      +  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, and an output schema exists, so the description's added burden is light. It does add useful context by summarizing what comes back (barcode, name, brands, Nutri-Score) and sizing expectations (max 10 results), but says nothing about empty results, ranking or pagination.

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 a 'Use this when' trigger and backed by two short examples, then scope and return info. Every sentence earns its place, though 'Pass the words to search for' largely repeats the schema's query description.

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 three-parameter read-only search tool with full schema coverage, rich annotations and an output schema, the description covers trigger, inputs, return summary and the sibling handoff. Nothing an agent needs in order to call it correctly is missing.

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 description coverage is 100%, so all three parameters are already documented, including the country formats and the limit range. The description restates the same facts (English name or two-letter code, limit up to 10) without adding meaning beyond the schema, which is the baseline-3 case.

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?

Names a specific verb and resource (find food products) and narrows it to name/brand search with two concrete example queries. An agent can immediately distinguish this from lookup_barcode, which the description explicitly names as the different 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?

States when to use it (user wants to find products by name or brand) and routes to lookup_barcode when the full entry is needed. It does not give explicit exclusions, e.g. that this is not for barcode-first lookups or for allergen checks, but the trigger context is clear.

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.