Skip to main content
Glama

Search parts

search_parts
Read-onlyIdempotent

Find LDraw parts by description and check availability at LEGO or GoBricks to pick parts for brick or LDraw builds or confirm a part exists.

Instructions

Find LDraw parts by description, with availability at a part source.

Use it to pick parts for brick / ldraw operations, or to check whether a part exists at LEGO or GoBricks. Matches parts whose description contains every word of query (case insensitive), lists available parts first, most colours first. Returns one line per part: part number, description, and "N colours" or "NOT AVAILABLE". For one part's details use part_info. Read-only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_parts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of parts to list
queryYesWords that must all appear in the part description, e.g. 'slope 45 2 x 1' or 'plant leaves'
sourceNoPart source: 'lego' (official LEGO parts and colours, default) or 'gobricks' (GoBricks moulds, colours and prices)lego

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.1
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of parts to list"
    • addedInput schema / properties / limit / maximum
      Added value: +200
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • addedInput schema / properties / query / description
      Added value: +"Words that must all appear in the part description, e.g. 'slope 45 2 x 1' or 'plant leaves'"
    • addedInput schema / properties / source / description
      Added value: +"Part source: 'lego' (official LEGO parts and colours, default) or 'gobricks' (GoBricks moulds, colours and prices)"
    • addedInput schema / properties / source / enum
      Added value: +[
      +  "lego",
      +  "gobricks"
      +]
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), yet the description still adds substantive behavior: AND-matching across all query words, case insensitivity, result ordering (available first, most colours first), and the exact return shape ("N colours" or "NOT AVAILABLE"). This is context an agent cannot get from the annotations alone.

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?

Purpose and usage are front-loaded in the first two sentences, followed by behavior and return format, which is good ordering. Minor redundancy exists — "Read-only." duplicates readOnlyHint=true and part of the return format duplicates the output schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter search tool with full schema coverage, annotations, and an output schema, the description covers purpose, matching rules, ordering, and output granularity. Nothing an agent needs to invoke it correctly is missing.

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 100%, so all three parameters are already documented, including the source enum, default, and limits. The description's restatement of query matching and source availability largely mirrors the schema rather than adding new semantics, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Find LDraw parts") plus the scope qualifier ("by description, with availability at a part source"). It also names the sibling it is not ("For one part's details use `part_info`"), so an agent can distinguish it without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use contexts: picking parts for `brick`/`ldraw` operations, or checking existence at LEGO or GoBricks. It also names the alternative (`part_info`) for the adjacent need, so the routing decision is fully determined.

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