Skip to main content
Glama
SolidworksMCP-python

SolidworksMCP-python

Export DWG

export_dwg
DestructiveIdempotent

Save the active SolidWorks drawing as a DWG file for AutoCAD users. Specify a file path ending in .dwg; folders are created and existing files replaced.

Instructions

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

Use it to hand a drawing to AutoCAD users. SolidWorks picks the format from the file's extension, so end file_path in .dwg. Needs: an open, active drawing. 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_dwg"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_dataYesThe export. `file_path` (ending in .dwg) 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 .dwg) 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.3/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint true, idempotentHint true), the description discloses exactly what gets destroyed ('replacing a file already there'), that the folder is created, and that the source document is untouched. That side-effect contract is precisely what an agent needs before invoking an overwriting 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?

Front-loaded with the action, then cleanly labelled 'Needs:', 'Changes:', and 'Returns:' blocks that make scanning easy. Minor redundancy between 'stays open on its own file' and 'the open document is unchanged', but nothing is padding.

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?

Given a single nested parameter, full schema coverage, annotations, and an output schema, the description covers prerequisites, side effects, and the return payload. Nothing an agent needs to call it correctly is 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?

With 100% schema coverage, the baseline is 3; the description earns an extra point by making the extension rule operational ('end file_path in .dwg', 'SolidWorks picks the format from the file's extension'). This reinforces the .dwg constraint beyond the schema's generic 'Full path for the exported file'.

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 states a specific verb and resource: 'Write a DWG copy of the active document.' Format specificity (DWG, .dwg) separates it from export_pdf/export_step/export_stl siblings, though it never names an alternative explicitly. An agent can identify what the tool produces without opening the schema.

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?

It gives a clear use case ('hand a drawing to AutoCAD users') and a prerequisite ('Needs: an open, active drawing'). It does not state when not to use it or name the sibling export tools that would serve other formats, so routing to the correct export variant is left partly implicit.

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