Skip to main content
Glama

Create a design

create_design

Saves new OpenSCAD code as a versioned design, validates it with OpenSCAD, reports errors/warnings/echo with source lines, and returns an isometric preview for valid models; duplicate names fail.

Instructions

OpenSCAD: saves new SCAD code as a design (version 1), validates it with OpenSCAD and returns errors, warnings and echo output with the affected source lines. A valid design comes back with an isometric image of the rendered model. Fails when the name is taken.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "code": "<code>"
    },
    "name": "create_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesComplete OpenSCAD source of the design.
nameYesDesign name, e.g. "broom-holder-28mm". Stored as lower-case letters, digits and dashes.
previewNoAttach an isometric image of the model when the code is valid. Default: true (server setting).
descriptionNoOne line on what the part is and what it is for.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description explains that the code is validated, that errors, warnings, and echo output are returned with affected source lines, that valid designs return an isometric image, and that name collisions cause failure. This gives an agent strong behavioral context for a mutating tool.

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?

The description is three focused sentences, front-loads the core action and validation behavior, and includes no redundant or filler text.

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?

With no output schema, the description does a good job explaining validation diagnostics and the preview image for valid designs. It does not explicitly mention returning design identifiers or version metadata, which an agent might need after creation, but the core return behavior is covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds meaningful semantics beyond the schema by stating that the name must not already be taken and that valid designs produce an isometric image, which clarifies name uniqueness and the practical effect of the preview behavior.

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 uses a specific verb and resource: it saves new SCAD code as a design at version 1, then validates it with OpenSCAD. It also distinguishes this create operation from related tools by stating that it fails when the name is already taken, implying an existing design should be handled elsewhere.

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 context is clear: this is for creating a new design from SCAD source. The failure condition for an existing name is useful guidance, but it does not explicitly name an alternative such as update_design for existing designs.

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