Skip to main content
Glama

Parts list

parts_list
Idempotent

Generates a saved build's parts list as CSV and BrickLink XML wanted list for buying or counting parts, with totals, common parts, and optional GoBricks cost estimates.

Instructions

Write the parts list of a saved build.

Use when the user wants to buy or count the parts. Writes <build>/parts.csv (part, name, colour, LDraw and BrickLink colour ids, quantity, price) and <build>/bricklink.xml, a BrickLink wanted list ready to upload. Returns a summary: total parts, part/colour lots, the file paths, the most used parts, and an estimated cost when source is "gobricks". Requires a build made with build first.

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

Input Schema

NameRequiredDescriptionDefault
nameYesThe build's name, as given in its plan (see build)
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. Changed3 schema fields changedv0.1.1
    • addedInput schema / properties / name / description
      Added value: +"The build's name, as given in its plan (see build)"
    • 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.7/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, idempotentHint=true, destructiveHint=false; the description goes well beyond them by disclosing the two files written, their exact locations and column contents, that the XML is an upload-ready BrickLink wanted list, and that a prior `build` run is required. That is precisely the side-effect and dependency information an agent needs before invoking a write tool.

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?

Three sentences ordered as purpose, trigger, side effects, returned summary, prerequisite — front-loaded with the action and no filler. The parenthetical column list is dense but every element is decision-relevant.

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 two-parameter write tool with an output schema, it covers the operation, disk side effects, prerequisite ordering, and return content; the output schema handles the result shape. Nothing an agent needs in order to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: `name` must correspond to a build produced by `build`, and `source` values control part/colour vocabulary plus whether an estimated cost is returned for "gobricks". This ties the enum to an observable output difference that the schema alone does not express.

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?

The description leads with a specific verb and resource: "Write the parts list of a saved build." It then names the exact artifacts produced (`<build>/parts.csv`, `<build>/bricklink.xml`), which lets an agent separate this from read-only siblings like `search_parts`, `part_info`, or `export` without opening a schema.

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

Usage Guidelines4/5

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

It gives an explicit trigger ("Use when the user wants to buy or count the parts") and a hard prerequisite ("Requires a build made with `build` first"), which routes the agent correctly within the workflow. It stops short of stating when NOT to use it or naming an alternative for subset/non-purchasing needs.

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