Skip to main content
Glama
SolidworksMCP-python

SolidworksMCP-python

Export STEP

export_step
DestructiveIdempotent

Export the active SolidWorks part or assembly to a STEP file (.step or .stp) for CAD exchange while leaving the open document unchanged.

Instructions

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

Use it to hand a model to another CAD system; it is the most widely read exchange format. SolidWorks picks the format from the file's extension, so end file_path in .step or .stp. 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.

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_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_dataYesThe export. `file_path` (ending in .step or .stp) 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 .step or .stp) 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

A3.6/5.0
Behavior3/5

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

The description adds meaningful behavior beyond the annotations: it says the tool creates the target folder, replaces an existing file, and leaves the open document unchanged, which fills in what destructiveHint=true actually destroys. However, it does not mention error conditions or permission/overwrite-confirmation behavior, so it is solid but not exhaustive.

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-loads the action, then needs, changes, and returns in labeled chunks, with the critical extension guidance placed early. There is mild redundancy between "it stays open on its own file" and "the open document is unchanged," but nothing wasteful enough to penalize heavily.

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?

For a single-parameter export tool with an output schema, the description covers prerequisite, side effects, and format selection, which is enough to call it correctly. The only gap is guidance on choosing STEP over the many sibling export formats.

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?

With schema coverage at 100%, the schema already documents both file_path and format_type, including the extension-driven format rule. The description largely restates the extension rule rather than adding new syntax or constraint detail, so the baseline 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?

"Write a STEP copy of the active document" gives a specific verb+resource, and the STEP naming makes the boundary against export_iges/export_stl/export_dwg implicit. It does not explicitly name a sibling to route the agent away from, which keeps it short of a 5.

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?

"Use it to hand a model to another CAD system; it is the most widely read exchange format" supplies a clear use context, and "Needs: an open, active part or assembly" states the prerequisite. It gives no explicit when-not guidance (e.g., when to prefer IGES or STL instead), so it stops at 4.

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