Skip to main content
Glama

Search products

search_products
Read-onlyIdempotent

Search Toys Hub's catalogue by words, category, age and price. Returns name, price, availability, photo, product page and a buy-now link for each match.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageNoChild's age in years; returns products suitable for that age.
langNoLanguage of names, descriptions and links: "sq" Albanian, "en" English.en
limitNoHow many products to return, 1 to 50.
queryNoWords to look for in names and descriptions (Albanian or English). Empty lists popular products.
categoryNoCategory slug from list_categories.
max_priceNoHighest price, in the store currency.
in_stock_onlyNotrue: only products that can be bought now (in stock).

Output Schema

NameRequiredDescriptionDefault
productsYes
resultCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / in_stock_only / description
      Added value: +"true: only products that can be bought now (in stock)."
    • addedInput schema / properties / limit / description
      Added value: +"How many products to return, 1 to 50."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is fully covered. The description adds the shape of each match (includes a buy-now link), but omits useful traits such as what an empty query returns or how limit/pagination behaves.

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?

Two tight sentences, front-loaded with the verb and resource, followed by the return shape. No filler or redundancy.

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 seven optional parameters, a full output schema and rich annotations, the description carries the right amount of weight for a search tool. It could be slightly more complete by pointing to list_categories for slugs or noting empty-query behaviour, but nothing essential to invoking it 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 every parameter including the lang enum and max_price currency semantics is already documented in the schema. The description only echoes four of the seven facets, adding no syntax or default details beyond the structured data.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (search) and resource (Toys Hub's catalogue) plus the four searchable facets: words, category, age and price. This clearly separates it from get_product, which fetches a single item, but the description never names that sibling to make the distinction explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: the agent can infer this is the browse/discovery entry point. There is no statement of when to prefer it over get_product or list_categories, and no mention that category slugs must come from list_categories (that hint lives only in the schema).

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.