Skip to main content
Glama
SolidworksMCP-python

SolidworksMCP-python

Export STL

export_stl
DestructiveIdempotent

Exports the active SolidWorks part or assembly as an STL file for 3D printing, resolving lightweight components while keeping the open document unchanged.

Instructions

Write a STL copy of the active document; it stays open on its own file.

Use it for 3D printing. An assembly is exported whole, with lightweight components resolved first. SolidWorks picks the format from the file's extension, so end file_path in .stl. Needs: an open, active part or assembly. Changes: writes the file, creating its folder and replacing a file already there; the open document is unchanged. Returns: export with file_path and format, plus warning when SolidWorks wrote the file without its STL options (bodies not merged into one 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": {
      "input_data": "<input_data>"
    },
    "name": "export_stl"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_dataYesThe export. `file_path` (ending in .stl) is required; `format_type` is not needed: the file extension decides the format.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv2.0.0
    • changedInput schema / properties / input_data / description
      Previous value: -"The input data value."New value: +"The export. `file_path` (ending in .stl) is required;\n`format_type` is not needed: the file extension decides the\nformat."
    • addedInput schema / properties / input_data / properties / format_type / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / input_data / properties / format_type / default
      Added value: +null
    • changedInput schema / properties / input_data / properties / format_type / description
      Previous value: -"Export format (step, iges, stl, pdf, dwg, jpg, png)"New value: +"Not needed: the file extension sets the format; defaults to the tool's own format"
    • removedInput schema / properties / input_data / properties / format_type / type
      Removed value: -"string"
    • removedInput schema / properties / input_data / properties / options
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Format-specific export options"
      -}
    • changedInput schema / properties / input_data / required
      Previous value: -[
      -  "file_path",
      -  "format_type"
      -]New value: +[
      +  "file_path"
      +]
  2. First observedv1.0.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: discloses that the file is written, the containing folder is created, an existing file at that path is replaced, and that the open document is left unchanged — consistent with destructiveHint=true and readOnlyHint=false. It also explains the warning return (bodies not merged into one file), which an agent could not infer from the structured fields.

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 action, then compact labeled segments (Use it for / Needs / Changes / Returns) that each carry information. Minor redundancy: the .stl extension requirement is stated both here and in the schema's own parameter description.

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?

For a single-parameter mutation tool with an output schema, the description covers prerequisites, side effects, overwrite risk, document state, and the warning case. Nothing an agent needs to invoke it safely appears to be 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% and the nested schema already says file_path must end in .stl and format_type is not needed, so the description mostly restates it. It adds the rationale (SolidWorks infers format from the extension), but no syntax, path-format, or overwrite-behavior nuance specific to the parameter beyond that.

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?

Specific verb and resource: 'Write a STL copy of the active document', with the scope clarified (document stays open, assemblies exported whole with lightweight components resolved). The format-specific framing distinguishes it from export_step/export_iges/export_dwg without ambiguity.

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?

Gives a concrete use case ('Use it for 3D printing') and a precondition ('Needs: an open, active part or assembly'). What is missing is an explicit when-not or a named alternative (e.g. use export_step for CAD exchange), so it stops short of full routing guidance.

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

Deploy Server

Other Tools