Skip to main content
Glama

compile_scad

Compile OpenSCAD code or .scad files into STL meshes for 3D printing, with BOSL2 library support and adjustable timeout for surface() heightmap operations.

Instructions

Compile OpenSCAD code into an STL file.

        Takes OpenSCAD source code OR a path to a .scad file, compiles
        it using the local OpenSCAD binary, and returns the path to the
        generated STL. Supports Kiln's bundled BOSL2 library.

        For surface() heightmap operations (photo emboss, lithophane),
        increase timeout to 600+ seconds.

        Args:
            scad_code: Valid OpenSCAD source code (provide this OR scad_path).
            scad_path: Path to a .scad file (provide this OR scad_code).
            timeout: Maximum compilation time in seconds (default 300).

INLINE 3D STAGE: on success this tool also opens Kiln's interactive 3D stage — an inline viewer panel the user can orbit, zoom, and turn over — in hosts that render MCP Apps panels (Kiln's hosted connection attaches a browser stage link for hosts that don't). Oversized meshes are decimated automatically for the stage; the PNG preview is the floor, not the whole experience.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNo
scad_codeNo
scad_pathNo
Install Server

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral disclosure burden. It reveals the use of a local binary, BOSL2 support, the inline 3D stage side effect, automatic mesh decimation, and the caveat that the PNG preview is not the whole experience. This goes beyond a basic 'compile' statement, though it does not mention failure modes, file cleanup, or permission implications.

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 front-loaded with the core purpose and input modes, followed by a timeout tip and structured Args list. The inline 3D stage paragraph is somewhat long and uses ALL CAPS, but it conveys important behavioral context. Each sentence contributes useful information, though the staging explanation could be tightened slightly.

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 no output schema and no annotations, the description covers the key operational aspects: inputs, compilation process, return value, timeout guidance, and the post-success 3D stage behavior. It is sufficiently complete for an agent to invoke and interpret the result, though error handling and file lifecycle details are absent.

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?

Schema coverage is 0%, so the description must fully compensate for parameter meaning. It provides an explicit Args section explaining scad_code and scad_path are mutually exclusive options, and timeout defaults to 300 seconds with a scenario-specific increase to 600+. This adds significant semantic value beyond the raw schema fields.

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 opens with a specific verb+resource pair: 'Compile OpenSCAD code into an STL file.' It then details the two input modes (source code or .scad path), the local OpenSCAD binary, and the return value (path to generated STL), making the tool's purpose unmistakable. This clearly distinguishes it from siblings like validate_openscad_code, analyze_scad_code, and tweak_and_compile_scad.

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 gives clear context for when to use the tool (compiling SCAD to STL) and provides a specific time-based guideline for surface() heightmap operations ('increase timeout to 600+ seconds'). It also explains the OR relationship between scad_code and scad_path, which guides invocation. However, it does not explicitly name alternatives or state when not to use this tool in favor of a sibling.

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

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/codeofaxel/kiln'

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