Skip to main content
Glama

get_part_by_number

Read-only

Resolve a part number to its item details using BrickLink, Rebrickable, or BrickWork as the source, with optional color filtering.

Instructions

Find the item for a part number; the same item body as /items/{id} (decision 2). Default provider bricklink; provider=rebrickable for Rebrickable numbers. Several items answer 409 ambiguous with the candidates, none 404. Parameters: no, provider, color

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": {
      "no": "<no>"
    },
    "name": "get_part_by_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
noYes
colorNo
providerNobricklink

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already establish this is a safe read, so the bar is lower, and the description still adds genuine behavior: ambiguity surfaces as 409 with candidate items while no match returns 404, and the response body matches /items/{id}. That is exactly the kind of failure-mode context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense and front-loaded with the core behavior first, but the final "Parameters: no, provider, color" line earns nothing and the parenthetical "(decision 2)" is internal noise that leaks into an agent-facing string.

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 three-parameter lookup with no output schema, the important pieces (status-code semantics, response body parity, provider meaning) are present. The gaps are the undocumented color parameter and the absence of any guidance on how to resolve 409 candidates versus retrying with a different provider.

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 0%, so the description must compensate, and it does only partly. It clarifies what provider values mean in practice (bricklink numbers vs Rebrickable numbers), but the trailing "Parameters: no, provider, color" merely restates the schema and the color parameter is left entirely unexplained.

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 ("Find the item for a part number") and anchors the result shape by reference to /items/{id}. It is clearly a part-number lookup rather than a set/minifigure lookup, though it never names a sibling tool to contrast with.

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?

"Default provider bricklink; provider=rebrickable for Rebrickable numbers" gives real selection guidance for the provider parameter, and the 409/404 rules tell the agent how to interpret outcomes. But there is no statement of when to prefer this over get_item or the other get_*_by_number lookups.

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