Skip to main content
Glama

get_set_by_number

Read-only

Resolve a brick set number to its item record, returning the same body as /items/{id}; filter by provider and color, and get 409 with candidates when a number is ambiguous.

Instructions

Find the item for a set number; the same item body as /items/{id} (decision 2). A set number is the same at both providers. 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_set_by_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
noYes
colorNo
providerNobricklink

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

Beyond readOnlyHint=true and destructiveHint=false, the description discloses error semantics an agent could not infer from the schema: ambiguous set numbers yield 409 with the candidate list, and a miss never yields 404. The phrasing 'Several items answer 409 ambiguous with the candidates, none 404' is terse to the point of being hard to parse, but the content is genuinely additive.

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?

The definition is short and front-loads the purpose, which is good, but it is telegraphic and mixes references ('decision 2', a raw route path) with a trailing parameter name list that duplicates the schema without adding meaning. The 409/404 sentence needs unpacking rather than trimming.

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 read-only lookup with no output schema, the description covers identity and failure modes reasonably well and points at the /items/{id} response shape. It still leaves the model unsure how provider/color actually alter results, which matters given three provider values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning, but all it offers is a flat list of names: 'no, provider, color.' It never says what 'color' does for a set lookup, how 'no' should be formatted (up to 64 chars), or which provider to prefer beyond the new default.

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 opens with a specific verb and resource ('Find the item for a set number') and clarifies that the returned body is identical to /items/{id}. This distinguishes it by resource type from same-shaped siblings like get_part_by_number or get_minifigure_by_number, though those are never explicitly named.

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 the verb and the 'A set number is the same at both providers' remark, which hints at when provider selection matters. There is no explicit when-to-use/when-not guidance and no named alternative, and the 'both providers' phrasing conflicts with the three-value provider enum in the schema.

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