Skip to main content
Glama

Export Model To Stl

export_model_to_stl

Exports the current OpenSCAD script to an STL file for 3D printing, using a specified output filename.

Instructions

Export the current OpenSCAD script to STL file

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": {
      "filename": "<filename>"
    },
    "name": "export_model_to_stl"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesOutput filename (without .stl extension)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and discloses little beyond the verb. It does not say where the file is written, whether an existing file is overwritten, whether the export invokes a compile that may be slow or fail, or what happens if the script is invalid. For a tool that writes to disk, these are meaningful omissions.

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?

One short sentence, front-loaded with the verb and resource, with no filler. It is efficient, though its brevity contributes to the gaps in guidance and behavior rather than being a model of well-structured documentation.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, but the tool is a file-producing operation with zero annotation coverage and the description omits output location, overwrite behavior, and failure modes. Relative to the complexity of writing an exported artifact, this is under-described.

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% and the single filename parameter is fully documented in the schema, including the "without .stl extension" convention. The description adds nothing about the filename beyond what the schema states, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs a specific verb ("Export") with a specific resource and format ("current OpenSCAD script to STL file"), which is clearly distinct from siblings like save_openscad_script or view_render. It stops short of explicitly contrasting itself with the render/view path, so it is clear but not sibling-differentiated.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites such as whether the model must already be rendered or whether the script must be saved first, and no reference to any alternative tool. The agent must infer the entire invocation context from the name alone.

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