Skip to main content
Glama
SolidworksMCP-python

SolidworksMCP-python

Save As

save_as
DestructiveIdempotent

Saves the active SolidWorks document to a new path as a native file or exports it to STEP/IGES, with optional copy and overwrite behavior.

Instructions

Save the active document under a new path, as a SolidWorks file or in an exchange format such as STEP or IGES.

For a SolidWorks format (solidworks, sldprt, sldasm, slddrw) it is File > Save As: the open document becomes the new file, and open assemblies that use it follow it to the new name. With as_copy it writes a copy instead and the original stays the open, referenced document. Any other format_type is an export: it writes a copy, and the open document keeps its own file. For one known format with its options, prefer export_step, export_stl and the other export_* tools. Needs: an open, active document. Changes: writes the file. A file already at file_path is kept and the call refused, unless overwrite is on. Returns: file_path and format; with as_copy, current_path and kept_original.

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

Input Schema

NameRequiredDescriptionDefault
input_dataYesThe target. `file_path` is required; `format_type` defaults to "solidworks", and `overwrite` and `as_copy` are off.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.2.0
    • changedInput schema / properties / input_data / description
      Previous value: -"The target. `file_path` is required; `format_type` defaults\nto \"solidworks\", and `overwrite` is off."New value: +"The target. `file_path` is required; `format_type` defaults\nto \"solidworks\", and `overwrite` and `as_copy` are off."
    • addedInput schema / properties / input_data / properties / as_copy
      Added value: +{
      +  "default": false,
      +  "description": "SolidWorks formats only: write a copy and keep the original open, as Save As's 'Save as copy and continue' does, so assemblies keep using the original",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv2.0.0
    • changedInput schema / properties / input_data / description
      Previous value: -"The input data value."New value: +"The target. `file_path` is required; `format_type` defaults\nto \"solidworks\", and `overwrite` is off."
  3. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety bar is lower, yet the description still adds real value: assemblies follow the renamed file, as_copy keeps the original open and referenced, exports silently write a copy, and an existing file is kept while the call is refused unless overwrite is on. The one weak spot is the mild tension with idempotentHint=true when overwrite renames/overwrites, which is not reconciled.

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 core action, then the format branching, then preconditions, side effects, and returns in a clear order. It is dense but nearly every clause carries behavioral information; the trailing returns sentence duplicates the output schema and could be trimmed.

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?

Covers precondition, mutation semantics, overwrite policy, the as_copy branch, and routing to export alternatives — enough for an agent to call it correctly even without reading the schema. Return values are restated despite an existing output schema, which is redundant rather than 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 coverage is 100%, so the baseline is 3, but the description adds genuine meaning: it groups solidworks/sldprt/sldasm/slddrw as the Save As path versus everything else as an export, and explains what as_copy does to the open document and to referencing assemblies. overwrite is only partially elaborated ("kept and the call refused, unless `overwrite` is on").

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 ("Save the active document under a new path") and immediately separates two behaviors: a true SolidWorks Save As versus an export in STEP/IGES. An agent can distinguish it from export_step/export_stl and save_file-style siblings without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit routing: "For one known format with its options, prefer `export_step`, `export_stl` and the other `export_*` tools," and explains that any non-SolidWorks format_type is itself an export. It also names the precondition (an open, active document) and the refusal condition (file already at file_path).

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