Skip to main content
Glama
musharna

ldraw-mcp

by musharna

lookup_color

Look up LDraw colors by code or name to get RGB values, edge color, alpha, and finish for each match.

Instructions

Look up LDraw colours in the library's LDConfig.ldr.

query is a colour code (4, or a direct colour 0x2FF8800) or part of a name (dark blue, Trans_Red). Returns code, name, RGB, edge colour, alpha and finish for each match; an unknown code returns no matches.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It explains that queries can be numeric codes, direct colours, or partial names, and that matches return code, name, RGB, edge colour, alpha, and finish. It also explicitly states that unknown codes return no matches, which sets expectations for empty results.

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?

The description is compact and front-loaded, starting with the core purpose and then detailing query syntax and return fields. Every sentence adds useful information; there is no filler.

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 simple one-parameter lookup tool with an output schema available, the description fully covers what the agent needs: input format, matching semantics, output fields, and empty-result behavior. Nothing important is missing.

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

Parameters5/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. It gives concrete examples of valid query forms ('4', '0x2FF8800', 'dark blue', 'Trans_Red') and describes the matching behavior, making the single string parameter's semantics fully clear.

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 clearly states the tool looks up LDraw colours from the library's LDConfig.ldr, with a specific verb and resource. It differentiates itself from sibling tools like search_parts and render_ldraw_file by focusing on colour metadata rather than geometry or rendering.

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?

The description makes it obvious when to use the tool: whenever an LDraw colour code or colour name needs to be resolved. It does not explicitly mention alternatives or exclusions, but the scope is clear enough that an agent would not confuse it with the listed sibling tools.

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