Skip to main content
Glama

Open in OpenSCAD

open_in_openscad
Idempotent

Opens a design in the OpenSCAD application, launching it when needed and focusing an existing window instead of opening it twice. Use it to display a model for preview and later design changes.

Instructions

OpenSCAD: opens a design in the OpenSCAD application on the user's screen, starting OpenSCAD when needed. With OpenSCAD's setting "Design → Automatic Reload and Preview" the window then follows every later change to the design; the result says whether that setting is on. A design this server already opened is not opened a second time: OpenSCAD is brought to the front instead.

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>"
    },
    "name": "open_in_openscad"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDesign name, e.g. "broom-holder-28mm". Stored as lower-case letters, digits and dashes.
reopenNoOpen a window again although this server already opened the design (the user closed the window).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the external side effect (an app window appears on the user's screen), the dependency on OpenSCAD's 'Automatic Reload and Preview' setting, and the idempotent behavior of focusing an already-open window rather than opening a second one. It even explains what the result communicates (whether that setting is on), which annotations cannot convey.

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?

Three sentences, each carrying distinct information: what happens, what happens afterward with the reload setting, and what happens on a repeat call. The main effect is front-loaded and nothing is padding.

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?

Complete for a two-parameter tool with no output schema: the side effects, the launching precondition, the idempotency rule, and the one meaningful return signal are all covered. Only a note on failure modes (e.g. OpenSCAD not installed) is arguably missing.

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 coverage is 100%, with both 'name' and 'reopen' documented in the schema itself, so the baseline is 3. The description reinforces the semantics of the de-duplication that 'reopen' overrides but never names the parameter directly, so it adds only modest meaning beyond the schema.

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?

Names a specific verb and resource ('opens a design in the OpenSCAD application') and pins down the exact effect ('on the user's screen', 'starting OpenSCAD when needed'). This is clearly distinguishable from the design-CRUD siblings such as create_design, get_design, and export_design, which never launch an external application.

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?

Provides a clear context for use (put the design in front of the user, with live reload following later edits) and states the de-duplication rule plus the 'reopen' escape hatch. It does not explicitly name an alternative tool or say when not to use it, so it stops short of a full routing statement.

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