Skip to main content
Glama

Search products

search_products
Read-onlyIdempotent

Searches products by word and returns the same fields as list_products. Use it when someone names an item, like a hoodie or a vinyl. Narrow it with artist, store or in_stock. A search across every store ranks by best match. Within an artist or store, results list newest first.

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 to return, 1 to 50. Default 10.
queryYesWords to match, 2 to 100 characters.
storeNoA store id from list_stores.
artistNoAn artist id or slug from list_artists.
offsetNoHow many to skip, 0 to 200.
in_stockNoTrue for in-stock products only, false for sold-out only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description earns credit for adding ordering semantics the annotations cannot express: best-match ranking across all stores versus newest-first ordering within an artist or store. It omits behavior on empty result sets or pagination beyond the limit/offset fields.

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?

Four short sentences, all load-bearing, with purpose and the sibling reference front-loaded and ordering caveats last. Nothing is redundant with the schema.

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?

For a six-parameter search with no output schema, the description handles the main gap by deferring return shape to list_products and explaining result ordering. Minor omissions remain, such as no-result behavior, but nothing an agent needs to invoke it correctly is missing.

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 adds real meaning: artist/store/in_stock function as narrowers and the artist/store scope also changes the sort order. That is a behavioral tie between parameters and output ordering the schema does not state. It doesn't clarify query matching rules (substring vs token).

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?

States a specific verb and resource ('Searches products by word') and immediately differentiates from the sibling enumeration tool by noting it 'returns the same fields as list_products.' An agent can pick it apart from list_products 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 Guidelines4/5

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

Gives a concrete triggering condition ('Use it when someone names an item, like a hoodie or a vinyl') and lists the narrowing knobs. It never explicitly says when not to use it or names list_products as the browse-everything alternative, so it stops short of full when/when-not guidance.

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.