Skip to main content
Glama

search_products

Read-only

Find bicycle parts by free-text part names, numbers, needs, or bike type, with optional filters for brand, category, fit, stock, and price.

Instructions

Find bicycle parts. Use this first, whenever the buyer names a part, a part number, a need or a bike. Takes free text (typos, synonyms and part numbers work) plus optional filters: brand, category, fits (such as 11-speed, road, disc-brake, 29in), in_stock_only and max_price_usd. Returns up to limit ranked results with id, title, brand, price, stock status and what each part fits. Search results show stock status but not quantities; call check_availability before promising a quantity. Queries are limited to 200 characters and 20 words; limit is 1 to 25, default 5.

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
fitsNoRequirements the part must fit, such as `11-speed`, `road`, `disc-brake`, `29in`, `12x142`. A part that says nothing about a requirement is treated as universal for it. Up to 10 entries of at most 100 characters; empty entries are refused.
brandNoOnly parts from this brand, for example `Aldermoor`. At most 100 characters.
limitNoHow many results to return, 1 to 25; anything else is refused. Defaults to 5.
queryNoWhat the buyer is looking for, in their own words: a part number such as `ALD-CH-1002`, a product type ("11-speed chain"), a need ("brake pads for disc brakes") or a bike ("tire for 29er mountain bike"). Typos and synonyms are tolerated. Leave empty to list parts by the filters alone.
categoryNoOnly parts in this category.
in_stock_onlyNoWhen true, hide parts that cannot ship from the shelf now (backorder and out of stock).
max_price_usdNoOnly parts priced at or below this many US dollars.

Output Schema

NameRequiredDescriptionDefault
resultsYesThe best matches, best first.
suggestionYesAdvice for the next call when nothing matched; absent otherwise.
total_matchesYesHow many parts matched in total, before the limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so safety needs no restating. The description adds genuinely non-obvious behavior: results are ranked, stock status is shown but quantities are not, and there are hard query limits (200 characters / 20 words) that appear nowhere in the schema. Ranking mechanics and empty-result behavior remain unstated, keeping it below a 5.

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?

Information is front-loaded in a sensible order: purpose, when to use, inputs, outputs, caveat, limits. Every sentence carries weight, though the closing sentence restates the limit bounds already present in the schema and could be trimmed.

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 7-parameter, all-optional search tool with an output schema and full annotation coverage, an agent has everything needed: entry condition, filter vocabulary, result shape at a glance, the stock-vs-quantity caveat, and the follow-up tool. Nothing required to invoke it correctly is absent.

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 the baseline is 3. The description's filter list (brand, category, fits, in_stock_only, max_price_usd) and its example values duplicate what the schema already documents field-by-field, and the limit range/default is repeated verbatim. No additional semantics are layered on top.

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?

Opens with a specific verb+resource ("Find bicycle parts") and immediately scopes it to the buyer's phrasing — part, part number, need, or bike. It is clearly distinguishable from check_availability, which it explicitly defers quantity questions to, and from get_product by positioning itself as the discovery-first 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?

"Use this first, whenever the buyer names a part, a part number, a need or a bike" gives an explicit entry condition, and "call check_availability before promising a quantity" names the follow-up tool and the trigger for switching. What is missing is the inverse case — no guidance on when to skip search entirely (e.g., when a product id is already known and get_product would be the direct route).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.