Skip to main content
Glama

Filter by attribute and price

filter

Products of Library 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 Library 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

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose real behavioral detail beyond the schema: attribute matching is exact and case-insensitive, the keys are the store's own specification attributes, and prices use Library Direct's currency. It is silent on pagination behavior, default sort, and what happens when an attribute key is unknown or yields no matches.

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 sentence with the resource front-loaded and qualifying detail in a parenthetical that earns its place by defining valid attribute keys. The nested parenthetical is dense and the trailing 'Combine with a category, brand and in-stock' is slightly clipped in phrasing, but there is no filler.

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?

Ten parameters, a nested object, no annotations and no output schema make this a moderately complex tool. The description covers the two semantically hardest surfaces, attributes and price, well enough to call correctly, but leaves four parameters (paging and sort) and the fulfilment enum entirely to the schema.

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 description coverage is only 30%, so compensation is needed, and the description largely delivers: it explains the shape and matching semantics of 'attributes' (key: value, exact, case-insensitive, store-defined keys), gives worked examples for price_min/price_max and states their currency units, and signals that category, brand and in-stock are combinable filters. It says nothing about page, page_size, sort, or the own/affiliate fulfilment enum.

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 gives a specific verb-and-resource: it returns 'Products of Library Direct' that match attribute values and/or a price range. That is a concrete, falsifiable purpose rather than a restatement of the name 'filter'. It does not, however, contrast itself with the sibling tools 'search' or 'browse', so an agent must infer which of the three to pick for a given query.

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: filtering by specification attributes and/or a price band, optionally narrowed further by category, brand and stock. The parenthetical 'see any product's attributes' is a genuinely useful pointer for discovering valid keys. Missing is any explicit when-not or comparative guidance against 'search' and 'browse'.

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