Skip to main content
Glama
quellant

OpenSCAD MCP Server

by quellant

render_single

Generate a 3D model image from OpenSCAD code or file by rendering a single view with customizable camera angles, image size, and output format.

Instructions

Render a single view from OpenSCAD code or file.

Args: scad_content: OpenSCAD code to render (mutually exclusive with scad_file) scad_file: Path to OpenSCAD file (mutually exclusive with scad_content)
view: Predefined view name ("front", "back", "left", "right", "top", "bottom", "isometric", "dimetric") camera_position: Camera position - accepts [x,y,z] list, JSON string "[x,y,z]", or dict {"x":x,"y":y,"z":z} (default: [70, 70, 70]) camera_target: Camera look-at point - accepts [x,y,z] list, JSON string, or dict (default: [0, 0, 0]) camera_up: Camera up vector - accepts [x,y,z] list, JSON string, or dict (default: [0, 0, 1]) image_size: Image dimensions - accepts [width, height] list, JSON string "[width, height]", "widthxheight", or tuple (default: [800, 600]) color_scheme: OpenSCAD color scheme (default: "Cornfield") variables: Variables to pass to OpenSCAD auto_center: Auto-center the model output_format: Output format - "auto", "base64", "file_path", or "compressed" (default: "auto") ctx: MCP context for logging

Returns: Dict with base64-encoded PNG image or file path

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scad_contentNo
scad_fileNo
viewNo
camera_positionNo
camera_targetNo
camera_upNo
image_sizeNo
color_schemeNoCornfield
variablesNo
auto_centerNo
output_formatNoauto

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries full burden. It reveals this is a rendering operation that produces images, mentions the return format (dict with base64 PNG or file path), and implies computational intensity through numerous camera/view parameters. However, it doesn't disclose important behavioral aspects like execution time, resource requirements, error conditions, or what 'auto' output format means in practice.

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?

The description is well-structured with clear sections (purpose, args, returns) and uses bullet-like formatting for parameters. While comprehensive, some sentences could be more concise (e.g., the camera parameter explanations are repetitive). The front-loaded purpose statement is clear, but the parameter documentation dominates the description length.

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?

Given the complexity (11 parameters, no annotations, 0% schema coverage), the description does a good job explaining parameter semantics and the return value. The output schema exists, so the description appropriately focuses on what the tool does rather than return structure. However, for such a complex rendering tool, more behavioral context about performance, limitations, or typical workflows would be beneficial.

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?

With 0% schema description coverage and 11 parameters, the description provides extensive semantic value beyond the bare schema. It explains the mutual exclusivity of scad_content/scad_file, enumerates valid 'view' options, details multiple acceptable formats for camera parameters and image_size, lists output_format options with their default, and clarifies what 'variables' represents. This significantly compensates for the schema's lack of descriptions.

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?

The description clearly states the verb ('Render') and resource ('a single view from OpenSCAD code or file'), making the purpose immediately understandable. However, it doesn't explicitly distinguish this tool from its sibling 'check_openscad' - both involve OpenSCAD but for different purposes (rendering vs checking).

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?

The description provides no guidance on when to use this tool versus alternatives. While it mentions the mutual exclusivity of 'scad_content' and 'scad_file', this is parameter-level guidance, not tool-level guidance about when to choose render_single over other rendering or OpenSCAD tools. No context about prerequisites or typical use cases is provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/quellant/openscad-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server