Skip to main content
Glama

search_products

Search the store catalog by keyword and filter by category, price, and stock availability to find matching products with prices, stock, and ratings.

Instructions

Search the store's public catalog by keyword, with optional category, price-range and stock filters and several sort orders. Returns one page of products with prices in integer yen (tax included), stock and ratings — exactly what the storefront shows.

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
pageNo1-based page number. Defaults to 1.
sortNoOne of: recommended, newest, price_asc, price_desc, rating. Defaults to recommended.
queryNoKeyword text matched against product names and categories (multi-term AND). Empty or omitted browses the whole catalog.
categoryNoCategory name, exactly as `list_categories` reports it.
in_stock_onlyNoKeep only products with stock on hand.
max_price_yenNoHighest price to keep, in integer yen (inclusive).
min_price_yenNoLowest price to keep, in integer yen (inclusive).

Output Schema

NameRequiredDescriptionDefault
pageYesThe 1-based page number this response serves.
totalYesTotal matches for the same conditions.
per_pageYesThe page size in effect.
productsYesThe page's products, in result order.
total_pagesYesTotal number of pages at this page size.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it establishes the catalog is public (no auth implied), that prices are integer yen with tax included, and that only one page of results is returned, so the agent knows to paginate. It stops short of stating page size, ordering of results within a page, or any rate limits.

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 tightly written sentences with the search scope front-loaded and the return contract second. Nothing is repeated and no sentence could be removed without losing information.

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 seven-parameter, all-optional read tool with an output schema present, the description covers the essentials: what is searched, which filters apply, that results are paginated, and the currency/tax basis. Only minor gaps remain, such as page size and whether an empty result set is distinguishable from an invalid query.

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 schema already documents every parameter including defaults, sort values and inclusive price bounds. The description only restates that these filters are optional and that several sort orders exist, adding no syntax or behavioral nuance beyond the schema.

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 ('search') and resource ('the store's public catalog') and enumerates the facets it can search on: keyword, category, price range and stock. This scope inherently separates it from single-item retrieval tools like get_product and from cart/order tools in the sibling set.

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 implied rather than stated: the word 'optional' signals all filters can be omitted and the tool then browses, but the description never says when to prefer this over get_product for a known item or list_categories for category enumeration. There are no explicit exclusions or alternative routing.

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