Skip to main content
Glama

Export a design

export_design
Idempotent

Render a parametric design to a versioned 3MF or binary STL file, with optional parameter overrides and printer-fit checks, returning the export path, mesh validation and print orientation.

Instructions

OpenSCAD: renders the final geometry of a design and writes it to the design's exports folder as 3MF (default) or binary STL. Returns the absolute file path, the size and bounding box in mm, the fit per configured printer, the mesh and bed-contact checks and the print orientation stated in the code. The file name carries the version, so earlier exports stay. params exports a variant without changing the design. This server does not slice or print.

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": "export_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDesign name, e.g. "broom-holder-28mm". Stored as lower-case letters, digits and dashes.
formatNoDefault "3mf".
paramsNoParameter overrides as name → value, e.g. {"pole_diameter": 32, "label": "A"}. Values are numbers, booleans, strings or lists of those.
printerNoPrinter to check against: a configured or built-in profile id (e.g. "a1mini") or a build volume "WIDTHxDEPTHxHEIGHT" in mm. Default: every configured profile.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, so the safety profile is partly given. The description adds genuinely non-structured behavior: the filename carries the version so earlier exports are preserved, and it enumerates what comes back (path, size, bbox in mm, per-printer fit, mesh/bed checks, code-stated orientation) in the absence of an output schema.

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?

Front-loaded with the verb and output format, then the return contract, then the two clarifications. Dense but every clause carries information; the long returns sentence is justified only because there is no output schema, though it could be split for readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 carries the return-value burden and does so thoroughly, and it flags the persistence model (versioned filenames) plus the scope limit (no slicing/printing). For a 4-param export tool with full schema coverage, nothing an agent needs to call it correctly is missing.

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 description coverage is 100%, so the baseline is 3; the description earns one more by explaining that `params` exports a variant without mutating the design, a semantic consequence the schema does not state. It doesn't clarify printer-profile precedence (configured vs. built-in vs. WxDxH) beyond what the schema already says.

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?

States a specific verb and resource chain: renders a design's geometry and writes it to the exports folder as 3MF or binary STL. It also draws a hard boundary ("This server does not slice or print") and distinguishes `params` as a variant export that leaves the design unchanged, which separates it from the mutating siblings.

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?

Clear context for when to call it: producing a final artifact file, optionally for a variant via `params`, and validating fit/mesh/orientation as a side effect. It never names a specific alternative sibling (e.g. open_in_openscad or set_parameters) for the nearby "I just want to look at it" or "I want to change the design" cases, so routing is inferred rather than stated.

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