Skip to main content
Glama
Onshape MCP

Onshape MCP

onshape_export_stl

Exports a Part Studio or individual part as a binary STL file and saves it to a specified local output path for CAD-to-3D-printing workflows.

Instructions

Export a Part Studio (or a single part) as binary STL and save it to output_path on this machine.

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": {
      "did": "<did>",
      "wvm": "<wvm>",
      "wvmid": "<wvmid>",
      "eid": "<eid>",
      "output_path": "<output_path>"
    },
    "name": "onshape_export_stl"
  }
}

Input Schema

NameRequiredDescriptionDefault
didYes
eidYes
wvmYes
unitsNomillimeter
wvmidYes
part_idNo
output_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

The phrase 'save it to output_path on this machine' usefully explains the filesystem write, consistent with openWorldHint=true and readOnlyHint=false. However, it does not disclose overwrite behavior for an existing output_path, despite idempotentHint=false, nor any auth or long-running-operation context for an export.

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?

A single front-loaded sentence with no filler, and the format and destination are stated up front. It is efficient, though arguably thinner than a 7-parameter tool warrants.

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 described, but with five required identity/target parameters at 0% schema coverage, the definition leaves an agent unable to know how to obtain did, wvm, wvmid, or eid. The 'Part Studio vs single part' distinction maps to part_id but is never tied to it explicitly.

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

Parameters2/5

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

Schema description coverage is 0% across 7 parameters, and the description only touches output_path and implicitly part_id via 'or a single part'. The identity parameters did, wvm, wvmid, eid and the units enum are left entirely unexplained, so the description does not compensate for the coverage gap.

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?

States a specific verb and resource: export a Part Studio or a single part as binary STL, plus the file destination. This is clearly distinct from siblings such as get_shaded_view (image) or get_mass_properties (numeric data), though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is implied by the description — use it when you need an STL geometry file on disk — but there is no explicit statement of when to prefer it over alternatives like get_shaded_view or get_bounding_box, and no prerequisites are given.

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