Skip to main content
Glama
quellant

OpenSCAD MCP Server

by quellant

update_model

Update an existing OpenSCAD model file with new source code. Specify the file name and content to overwrite the model's current code.

Instructions

Update an existing OpenSCAD model file with new content.

The file must already exist. Use create_model to create new files.

Args: name: File name of the model to update content: New OpenSCAD source code for the model workspace: Directory containing the model. Defaults to the configured temp_dir/models directory. ctx: MCP context for logging

Returns: Dict with success status, path, and name of the updated file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
contentYes
workspaceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The description discloses prerequisites (file must exist), the action (replacing content with new SCAD source), and return values (success status, path, name). It does not explicitly say "overwrites" or cover permissions/error cases, but for a mutation tool with no annotations, this is reasonably transparent.

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 Args/Returns sections and each line provides useful information. It is slightly repetitive ("existing" appears twice in the first two sentences) but overall efficient and front-loaded.

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 simple tool with an output schema, the description covers purpose, usage, parameters, and return values, and references the sibling create_model. It does not discuss edge cases like workspace validation or failure behavior, but the tool is straightforward and the description is sufficient.

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 descriptions are completely absent (0% coverage), and the description compensates by explaining each parameter: name (file name), content (SCAD source code), and workspace (directory, with default). The mention of ctx, which is not in the schema, is a minor inconsistency but does not detract from the meaning of the actual params.

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 ("Update") and resource ("existing OpenSCAD model file"), and explicitly distinguishes itself from create_model. The purpose is immediately clear and avoids tautology.

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

Usage Guidelines5/5

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

It explicitly states that the file must already exist and directs users to create_model for new files, providing a clear when-to-use rule and named alternative. This covers the key usage scenario and exclusion.

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