Skip to main content
Glama
3DCraft

3DCraft

doc_render_preview

Read-only

Render the active 3D document's bodies to a PNG preview image, returning coverage, triangle count, body list, and renderer used; inspect details with orthographic projection or zoom.

Instructions

Renders the active document's bodies to a PNG image (4:3) as view.render does with its defaults, on the renderer it chooses (the GPU when the session has one, as craft3d-cli mcp does, else the CPU renderer, as in a window), and returns it with the coverage, triangle count, body list and which renderer drew. For a detail: projection orthographic with a box or a zoom.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "doc_render_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxNoTwo opposite corners [[x, y, z], [x, y, z]] in document units: frame this box instead of the whole model.
modeNoshaded (default), or ids: one flat colour per face.
viewNoDefault iso.
zoomNoMagnifies about the centre of the picture. Default 1.
max_sideNoLongest side of the image in pixels. Default 1024.
toleranceNoChordal tolerance of the mesh in document units. Default: between a quarter and half a pixel of the picture where it shows the model nearest, never finer than the floor (2e-4 of the diagonal of the box around the bodies), at most 12 degrees per chord, within a total budget of a million triangles (so a close-up box or a larger picture is finer). Give one to fix it.
projectionNoDefault perspective. orthographic shows lengths across the view to scale: use it to check a detail or a top view.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), and the description still contributes real behavior: renderer selection logic (GPU when the session has one, else CPU), the 4:3 output format, and the full return payload in the absence of an output schema. What it omits is cost/latency characteristics, which matter for a rasterizing call.

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?

Wait — the sentence is long with stacked parentheticals.

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 read-only render tool with no output schema, the definition covers the return contents, the default behavior, and the renderer choice, so an agent can call it correctly without further context. The missing piece is the practical cost of rendering at various `max_side`/`tolerance` values, which is not disclosed.

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 every parameter is already documented in detail — the tolerance semantics in particular are fully specified in the schema. The description only adds the one combination worth knowing (orthographic + box or zoom for a detail), which is a small increment over the baseline for complete schema coverage.

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 concrete verb and resource: renders the active document's bodies to a PNG at 4:3, and enumerates what comes back (coverage, triangle count, body list, renderer). The constant comparison to `view.render` and `craft3d-cli mcp` adds noise rather than sharpening the purpose, but the core action is unmistakable and no sibling in the list performs rendering.

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?

There is no explicit statement of when to pick this over anything else, but the closing line ('For a detail: projection orthographic with a box or a zoom') gives a concrete usage recipe for detail inspection. An agent must infer general applicability from the purpose sentence rather than being told when and when not to call it.

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