Skip to main content
Glama

View Render

view_render

Renders the current OpenSCAD script from a chosen camera angle and returns the result as a base64 PNG for live previews.

Instructions

Render the current OpenSCAD script and return as base64 PNG

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": "view_render"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewNoCamera view - options: isometric, front, back, left, right, top, bottomisometric

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full load and does disclose the output format (base64 PNG), which is behaviorally useful. It says nothing about render latency, failure modes for invalid/degenerate geometry, or what happens when no script is open, so key runtime behavior for a rendering tool is still undisclosed.

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?

One tight sentence with the action and the returned artifact front-loaded and zero filler. It is arguably over-compressed, but nothing is wasted.

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?

The tool is simple (one optional parameter) and has an output schema, so return-value documentation is not needed. However, for an unannotated render operation the description leaves the agent guessing about prerequisites, performance cost, and error behavior.

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 description coverage is 100% and the single optional 'view' parameter already enumerates isometric/front/back/left/right/top/bottom. The description adds no camera or default-view meaning beyond the schema, so the baseline 3 applies.

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 ('Render') and a specific resource ('the current OpenSCAD script'), plus the output encoding ('base64 PNG'). This is distinguishable from siblings like create/save/export/show without reading schemas, though the description never names a sibling to contrast with.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance and no mention of alternatives such as export_model_to_stl or show_openscad_script, even though an agent could plausibly confuse visualizing with saving or exporting. 'Current script' hints that a script must already exist, but that prerequisite is only implied.

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