Skip to main content
Glama

Search Sets

search_sets
Read-onlyIdempotent

Search public LEGO listings by name or set number, with optional category, theme, condition and USD price filters. Returns paginated items with title, set number, condition, price, availability and product URL.

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_sets"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoFree-text search across set name and set number, e.g. "Millennium Falcon" or "75192". Empty returns all listings.
maxNoMaximum price in USD, inclusive; must be at least min.
minNoMinimum price in USD, inclusive.
pageNo1-based results page number.
sortNoSort order: newest listed, release year ascending/descending, price ascending/descending, or piece count.newest
limitNoResults per page, 1 to 50.
themeNoExact LEGO theme name to filter by, e.g. "Star Wars" or "Icons".
categoryNoShop section: all, new (sealed), used (Verified Complete) or coming-soon (not yet purchasable).all
conditionNoFilter by condition: new (sealed) or used (the Verified Complete category).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / condition / description
      Previous value: -"Filter by condition: new (sealed) or used."New value: +"Filter by condition: new (sealed) or used (the Verified Complete category)."
  2. Changed9 schema fields changed
    • addedInput schema / properties / category / description
      Added value: +"Shop section: all, new (sealed), used (Verified Complete) or coming-soon (not yet purchasable)."
    • addedInput schema / properties / condition / description
      Added value: +"Filter by condition: new (sealed) or used."
    • addedInput schema / properties / limit / description
      Added value: +"Results per page, 1 to 50."
    • addedInput schema / properties / max / description
      Added value: +"Maximum price in USD, inclusive; must be at least min."
    • addedInput schema / properties / min / description
      Added value: +"Minimum price in USD, inclusive."
    • addedInput schema / properties / page / description
      Added value: +"1-based results page number."
    • addedInput schema / properties / q / description
      Added value: +"Free-text search across set name and set number, e.g. \"Millennium Falcon\" or \"75192\". Empty returns all listings."
    • addedInput schema / properties / sort / description
      Added value: +"Sort order: newest listed, release year ascending/descending, price ascending/descending, or piece count."
    • addedInput schema / properties / theme / description
      Added value: +"Exact LEGO theme name to filter by, e.g. \"Star Wars\" or \"Icons\"."
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world behavior, so the safety profile is covered. The description adds value beyond that by disclosing the result shape (title, set number, condition, price, availability, product URL) and that results are paginated, which matters since there is no output schema.

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 sentences, zero filler: the search capability and filters come first, the return shape second. Every clause carries information an agent needs.

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 nine-parameter, zero-required search tool with no output schema, the definition covers purpose, filters, and return fields adequately, and the schema handles the rest. Minor gaps remain around result ordering behavior and how filters combine, but nothing blocks correct invocation.

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 all nine parameters including enums and defaults are already documented in the schema. The description only restates the filter categories (category, theme, condition, USD price) without adding syntax, precedence, or interaction details, so baseline 3 applies.

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?

States a specific verb and resource ('Search public LEGO listings by name or set number') plus the filterable facets and returned fields. It does not explicitly contrast itself with check_availability, which is the nearest potentially overlapping sibling, so an agent must infer the boundary.

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 by 'Search public LEGO listings' and the note that an empty query returns all listings, which helps for browse-style calls. There is no explicit when-to-use/when-not guidance and no routing to alternatives such as check_availability for stock questions.

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