Skip to main content
Glama

Filter by attribute and price

filter

Products of Hallway Trading matching attribute values (key: value, exact, case-insensitive — the keys are the store's own specification attributes, see any product's attributes) and/or a price range in Hallway Trading's currency, e.g. price_min 200, price_max 1500. Combine with a category, brand and in-stock.

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": "filter"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
sortNoorder of the results
brandNo
categoryNo
page_sizeNo
price_maxNo
price_minNoin major units of the store's currency
attributesNoe.g. {"material": "teak", "groups": 2}
fulfilmentNo
in_stock_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It does disclose matching semantics ('exact, case-insensitive', key/value pairs) and the currency used for price bounds, but it never states that this is a read-only listing operation, how results are ordered by default, or how pagination behaves despite page/page_size parameters existing.

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?

One dense sentence front-loads the resource and the primary filtering mechanism, then adds the composability hint. No filler, though the parenthetical about attribute keys is slightly buried mid-sentence.

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?

For a 10-parameter tool with no annotations and no output schema, the description covers the attribute and price logic well but omits the fulfilment enum, sort behavior, pagination, and the AND/OR combination rule. An agent could call it, but would be guessing on several non-obvious parameters.

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 only 30%, so the description needs to compensate, and it does for the key parameters: attribute matching is exact and case-insensitive, keys come from the store's own specification attributes, and price bounds are in the store's currency with a concrete example. It leaves fulfilment (own/affiliate), sort, and page/page_size semantics entirely to the schema, which limits it to a 4.

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?

The description names the resource (Hallway Trading products) and the two filtering dimensions (specification attributes and price range), so an agent can tell it is a product-filtering tool rather than a product-detail or cart tool. It does not explicitly contrast itself with the sibling 'search' tool, so the differentiation is only implicit.

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?

The closing clause 'Combine with a category, brand and in-stock' signals that filters are composable and is useful context. However, there is no explicit statement of when to use this tool versus 'search' or 'browse', and no when-not guidance or note on how multiple conditions are combined (the 'and/or' wording leaves the AND/OR semantics ambiguous).

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