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 that returns results.

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

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the description is free to add operational detail — and it does: the exact return fields, ranked "best matches", tokenization rule ("words shorter than 3 letters are ignored"), and a per-call lookup/credit cost. The cost sentence is awkwardly worded ("one lookup per call that returns results"), leaving it unclear whether that applies per page, which is the only real gap.

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?

Four tight sentences, front-loaded with the when-to-use condition and followed by return fields and constraints in a logical order. Only the vague lookup-cost sentence weakens an otherwise waste-free structure.

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

Completeness3/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 returned fields (barcode, title, brand, category, image), which is the main thing an agent needs. However, a paginated search tool with two undocumented paging parameters leaves the agent guessing how to traverse more than the first batch of results, which is a meaningful gap.

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

Parameters2/5

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

Schema coverage is only 33%: `query` is documented in the schema, but `page` and `per_page` have no description in either place. The description references "best matches" without explaining pagination, ordering, or how per_page interacts with the ranking, so it fails to compensate for the coverage gap on two of three parameters.

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?

"Search products by title, brand or category" gives a specific verb and resource plus the exact fields searched, and the clause "when you have a name rather than a barcode" distinguishes it from the barcode lookup siblings. An agent can choose between this and lookup_barcode without opening 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 Guidelines4/5

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

The phrase "when you have a name rather than a barcode" states the selecting condition and implicitly excludes the barcode tools, which is real usage guidance. It stops short of naming lookup_barcode explicitly or advising what to do when the name search returns poor matches, so it is strong but not exhaustive.

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