Skip to main content
Glama

preview

Render a PNG of your OpenSCAD model and return it as an image for visual inspection. Adjust camera, projection, or full render to see export-ready geometry.

Instructions

Render a PNG of the model and return it as an image.

camera is OpenSCAD's own string. Seven numbers are gimbal style, translate x,y,z then rotate x,y,z then distance, for example "0,0,0,55,0,25,400". Six numbers are eye x,y,z then centre x,y,z. Leave it unset and viewall frames the object automatically. projection is "o" for orthogonal or "p" for perspective. Set full_render to evaluate the real geometry rather than the preview approximation. It is slower but shows what will export.

Input Schema

NameRequiredDescriptionDefault
fileNo
cameraNo
sourceNo
definesNo
imgsizeNo800,600
viewallNo
timeout_sNo
projectionNoo
colorschemeNoTomorrow
full_renderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations, so the description carries the full burden. It discloses the output type (image), that unset camera means automatic viewall framing, and the performance/accuracy tradeoff of full_render — genuinely useful. It omits error behavior, timeout semantics, and any prerequisites (e.g. whether a file/source must be loaded first).

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-loads the one-line purpose, then walks parameters in a logical order. The multi-sentence camera explanation is long but earns its place given the non-obvious two numeric-string formats.

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 10-parameter tool with no annotations, no output schema, and 0% schema coverage, the description covers the rendering options well but leaves core inputs (file, source), defines, imgsize, colorscheme and timeout undocumented. Minimum viable, with clear gaps an agent must guess around.

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 0%, so the description must compensate across 10 parameters. It richly documents the two hardest ones (camera's 7-number gimbal vs 6-number eye/centre forms, projection values) plus viewall and full_render, but leaves file, source, defines, imgsize, colorscheme, and timeout_s entirely unexplained — notably the file-vs-source distinction.

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?

States a specific verb+resource: render a PNG of the model and return it as an image. It also implicitly hints at the preview/render distinction via 'preview approximation' and 'what will export', but it never names the sibling 'render' to route the agent explicitly.

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?

Gives useful guidance on individual options (camera formats, projection, when to use full_render) but offers no explicit when-to-use-this-vs-`render`-or-`check` guidance. Usage is implied through parameter semantics rather than stated selection criteria.

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