Skip to main content
Glama
musharna

ldraw-mcp

by musharna

render_ldraw_file

Render LDraw model files (.ldr, .mpd, .dat) to PNG images at specified azimuths and resolution. Adjust sample count to control output quality.

Instructions

Render an LDraw model file (.ldr/.mpd/.dat) to a PNG image.

Views are rendered at each comma-separated azimuth (degrees) and stitched side by side. Higher samples = cleaner but slower. Bounds: resolution 32..2048 px per view, samples 1..1024, 1..8 azimuths, and resolution^2 x samples x views at most 2**27.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
samplesNo
azimuthsNo-60,120
resolutionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description must disclose behavioral traits itself. It covers the samples-quality trade-off and the complexity constraint, which is useful. However, it does not state how the PNG is returned (file path, base64, etc.) or any side effects (e.g., writes to disk). This is a moderate disclosure, sufficient but not exhaustive.

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 tight sentences: purpose, behavior, and bounds. No filler. The core purpose is front-loaded, and every sentence earns its place. This is exemplary conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with four parameters, no output schema, and no annotations, the description is fairly complete. It covers purpose, parameter semantics, constraints, and trade-offs. The main omission is the output format (how the PNG is delivered), which could leave an agent guessing. Given the absence of structured metadata, this is a minor but notable gap.

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?

The schema has 0% parameter descriptions, so the description compensates well. It explains azimuths as comma-separated degrees, samples as a quality/performance trade-off, and resolution with bounds. The total complexity constraint also clarifies interactions between parameters. It adds substantial meaning beyond the bare schema, though path is left implicit (obvious from the tool name).

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 verb and resource: 'Render an LDraw model file (.ldr/.mpd/.dat) to a PNG image.' It specifies the input format and output format, distinguishing it from the sibling render_ldraw_text which likely renders text. The purpose is unambiguous and specific.

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 provides clear context on how the tool operates (azimuths, samples, resolution) and includes bounds, but it does not explicitly contrast with alternatives like render_ldraw_text or state when not to use it. This is clear context without exclusions, fitting the 4-level.

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