Skip to main content
Glama

Filter by attribute and price

filter

Products of Cupboard Depot 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 Cupboard Depot'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

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it usefully discloses that attribute matching is exact and case-insensitive and that prices are in the store's currency with a worked example. It omits result ordering defaults, pagination behaviour, and what happens when a filter matches nothing or a key is not a valid specification attribute.

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?

A single front-loaded sentence establishes the resource before the filter semantics, with the price example earning its place. It is dense but contains no filler, though the multi-clause structure takes effort to parse.

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 search-style tool with no annotations and no output schema, key semantics are covered but four parameters (page, page_size, sort, fulfilment) remain unexplained, and result shape is not characterised. Adequate but with clear gaps an agent may need to guess around.

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 only 30%, so extra meaning is needed; the description clarifies attributes (store spec keys, exact, case-insensitive), price_min/price_max units, and mentions category, brand and in-stock. It says nothing about page, page_size, sort, or the fulfilment enum ('own'/'affiliate'), which the schema also leaves undocumented.

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 states a specific resource (Cupboard Depot products) and the matching conditions (attribute key/value pairs and/or a price range), so the agent knows exactly what the tool returns. It does not contrast itself with siblings like search or browse, leaving differentiation to inference.

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?

'Combine with a category, brand and in-stock' implies how to compose the filters, and the note that keys are the store's own specification attributes tells the agent where to source values. However, there is no explicit guidance on when to choose this over search or browse, and no statement of failure cases such as unknown attribute keys.

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