Skip to main content
Glama

ldraw_lookup_part

Search LEGO LDraw parts by keyword, colour, or category to find matching pieces in a configured set catalog or the local LDraw library for model building.

Instructions

Search LEGO parts in the configured set catalog (if LDRAW_CATALOG_PATH is set) or across the entire local LDraw parts library by keyword, colour, or category.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of matching parts to return (default 30)
queryNoSearch keyword (e.g. '1x12', '2x4', 'plate', 'gear', 'axle', '3001')
colourNoFilter by color name or LDraw color code (custom catalog mode)
sourceNoSearch source: 'auto' prefers custom set catalog if loaded, otherwise full LDraw libraryauto
categoryNoFilter by category (e.g. 'Brick', 'Plate', 'Technic', 'Slope')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

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 the configuration dependency and the catalog-vs-library fallback, which an agent cannot get from structured fields. It stops short of describing what a match record contains, whether results are ranked, or any rate/cost characteristics of scanning the whole library.

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, front-loaded with the verb and resource, with zero redundant wording. The parenthetical condition makes it slightly long and dense but every clause carries information.

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 five-parameter search tool with no annotations and no output schema, the description covers scope and source selection but omits the shape of returned results and default-limit behavior, which the agent must infer from the schema. It is adequate but leaves real gaps for a tool whose output is undocumented.

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 five parameters (including limit, source enum, and colour code format) are already documented. The description repeats the query/colour/category axes and ties the catalog condition to the source parameter, but adds no syntax or format detail beyond the schema, so the baseline of 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?

The description uses a specific verb+resource ('Search LEGO parts') and states the two scopes it operates over: the configured set catalog or the full local LDraw library. It does not name a sibling (e.g. ldraw_inspect_part) to contrast with, so differentiation is only implicit from the 'search' framing.

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?

It implies usage ('by keyword, colour, or category') and discloses the environment condition that changes scope (LDRAW_CATALOG_PATH being set). It never says when to prefer ldraw_inspect_part over this, nor when search would be inappropriate, so the when-to-use guidance is implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.