Skip to main content
Glama

Filter by attribute and price

filter

Products of Lid Direct 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 Lid Direct'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, and it does add real behavior: matching is exact and case-insensitive, attribute keys are the store's own specification attributes, and prices are in Lid Direct's currency. It omits defaults for pagination, what the result set looks like, and any note on filter interactions (e.g. how in_stock_only differs from the fulfilment enum), which matters for a 10-parameter query tool.

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?

Two sentences, front-loaded with the resource and the primary filters, and the parenthetical about attribute keys is placed exactly where the agent would otherwise guess wrong. The phrasing is dense but nothing is redundant or wasted.

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 a nested object, no annotations and no output schema, the description covers the hardest concepts (attribute map semantics, price units) but leaves pagination, sorting and the fulfilment enum unaddressed. An agent could invoke it successfully but would be guessing on result ordering and on the fulfilment vs in_stock_only distinction.

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 coverage is only 30%, so the description must compensate, and it does partially: it explains that attributes is a free-form map of store specification attributes with exact, case-insensitive matching, and it gives units and examples for price_min/price_max. However, sort, page, page_size and fulfilment are never mentioned, and the description is silent on whether category and brand match by name, slug or id, so a meaningful portion of the surface stays 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 names a concrete resource ('Products of Lid Direct') and the two filtering dimensions it supports (specification attribute key/value pairs and a price range), with a worked price example. It never names a sibling such as search or browse, so the boundary against those tools is left implicit, which keeps it just short of a 5.

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 through 'and/or' and 'Combine with a category, brand and in-stock', which tells the agent filters are composable and that zero filters may be valid. There is no explicit when-not guidance and no pointer to an alternative when the agent wants free-text matching, so selection between this and search/browse must be inferred.

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