Skip to main content
Glama

Search products by name

search_products
Read-onlyIdempotent

Search products by title, brand or category when you have a name rather than a barcode. Returns barcode, title, brand, category and image for the best matches. Words shorter than 3 letters are ignored. Uses one lookup per call.

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
pageNo
queryYesSearch text, for example "nutella 400g".
per_pageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world and non-destructive behavior, so the bar is lower; the description still adds genuine context that annotations cannot: the returned fields, the tokenizer rule that words under 3 characters are ignored, and a cost/consumption note ('one lookup per call') that matters given the get_usage sibling.

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?

Three front-loaded sentences with no filler: purpose and disambiguation first, then return shape, then constraints. 'Uses one lookup per call' is terse to the point of ambiguity about whether it refers to quota cost or result scope, but it is not wasted text.

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

Completeness4/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 usefully enumerates the returned fields (barcode, title, brand, category, image), and it disambiguates the tool from its barcode siblings. The remaining gap is pagination behavior — how many results come back by default and how paging interacts with relevance ranking — which an agent must infer from page/per_page defaults.

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 only 33% — only 'query' carries a schema description — and the description compensates partially by explaining how the query string is tokenized and that results are 'best matches' (relevance-ordered). It says nothing about page or per_page, leaving result-set navigation undocumented in both structured and prose form.

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 names a specific verb and resource ('Search products') and scopes it to title, brand or category lookups, then explicitly contrasts it with the barcode path ('when you have a name rather than a barcode'), which cleanly separates it from the sibling lookup_barcode tools.

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 a clear selection rule — use this when you have a name, use barcode lookup when you have a barcode — which is real routing guidance against the siblings. It stops short of an explicit 'when not to use' statement or naming lookup_barcode/lookup_barcodes directly, so a 4 rather than a 5.

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