Skip to main content
Glama

Check any model

check
Read-onlyIdempotent

Validate any LEGO model file (.ldr, .mpd, .io) for buildability by verifying part existence, colors, rotations, duplicates, intersections, and connections to base; returns VALID or PROBLEMS details.

Instructions

Strictly validate any LEGO model file for buildability.

Use on any .ldr, .mpd or BrickLink Studio .io, including models not made by BrickScape (for BrickScape builds, build already reports this). Checks that every part exists in the LDraw library and at the part source, every part/colour pair exists, rotations are real (no mirrored or scaled parts), no duplicates, no two parts intersect (real part shapes), and every part is held by a real connection down to the base. Returns VALID or PROBLEMS with each failing check, the parts involved (part#index) and counts by connection type. Read-only: it never changes the file. Does not check balance or clutch strength.

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

Input Schema

NameRequiredDescriptionDefault
pathYesPath to a model to validate: .ldr, .mpd or BrickLink Studio .io
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 / path / description
      Added value: +"Path to a model to validate: .ldr, .mpd or BrickLink Studio .io"
    • 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?

Enumerates the checks performed (library/source existence, part/colour pairs, mirrored or scaled rotations, duplicates, real-shape intersections, connection chain to the base) and the return shape (VALID or PROBLEMS with parts identified as part#index and counts by connection type). It also states explicit scope exclusions ('does not check balance or clutch strength') and reiterates that the file is never modified, confirming the readOnly annotation rather than contradicting it.

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?

Front-loaded with the purpose, then the accepted formats, then the check list and return contract — a sensible order with no filler. The check enumeration is long but each item is substantive; the only mild redundancy is restating read-only behavior already implied by annotations.

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 validation tool with an output schema and full annotations, the description covers scope, accepted inputs, what is verified, what is deliberately not verified, and the pass/fail result shape. Nothing an agent needs in order to decide to call it or interpret its verdict 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 the path and source parameters are already documented in the schema, including the lego/gobricks enum. The description adds only a light implication that validation happens 'at the part source,' without explaining how the gobricks option changes the checks. Baseline 3 is appropriate when the schema carries the parameter burden.

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 ('Strictly validate any LEGO model file for buildability') and immediately scopes the accepted formats (.ldr, .mpd, .io). It also distinguishes itself from the sibling `build`, which already reports validation for BrickScape-generated models.

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 an explicit when-to-use ('any .ldr, .mpd or BrickLink Studio .io, including models not made by BrickScape') and a when-not/alternative ('for BrickScape builds, `build` already reports this'). The routing decision between this tool and `build` requires no inference.

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