Skip to main content
Glama
auto-autocad-mcp

auto-autocad-mcp

by xoaicc

drawing export

auto_drawing_export

Export the bound drawing to a DWG or DXF file without modifying or redrawing it. Writes DXF directly and DWG using the configured version if a converter or live AutoCAD seat is available.

Instructions

Write the drawing the backend is bound to out as a DWG or a DXF.

The one way to get the open drawing as a file of its own -- after a sheet build, say -- without touching it: nothing is drawn and the bound drawing is only read.

The format is fmt or path's suffix. dxf is always written; dwg is written through drawing_export_dwg with version (the profile's export.dwg_version when left blank), which headless needs the ODA File Converter and returns a typed refusal (dwg_write) without one, while a live seat writes DWG natively.

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": {
      "path": "<path>"
    },
    "name": "auto_drawing_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
fmtNo
pathYes
versionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that nothing is drawn and the bound drawing is only read, clarifying the safety profile. It also explains the DWG path's dependency on the ODA File Converter in headless mode, the typed refusal ('dwg_write') without it, and that a live seat writes DWG natively — rich behavioral context not present in the annotations.

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?

The description is front-loaded with the core action and then layers in format resolution and DWG dependency details. It is dense but mostly earns its length; the phrase 'after a sheet build, say' is slightly conversational, and the DWG sentence is long, but no major waste is present.

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 the tool's complexity, three parameters, and an existing output schema, the description covers the essential behavioral details: format resolution, DWG dependency and refusal behavior, and default version sourcing. Return values need not be explained because an output schema exists, and the definition leaves no significant gap for an agent to call it correctly.

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 0% schema description coverage, the description compensates by explaining that the format comes from 'fmt' or the path's suffix, that 'dxf' is always written, and that 'version' feeds the DWG export via 'drawing_export_dwg' with the profile's 'export.dwg_version' as the default. The only minor gap is that 'path' is not explicitly labeled as the output file path, though the context implies it.

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?

The description opens with a specific verb and resource: 'Write the drawing the backend is bound to out as a DWG or a DXF.' It also frames the tool as 'The one way to get the open drawing as a file of its own,' which distinguishes it from the sibling tools without needing to inspect their schemas.

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 usage context ('after a sheet build, say') and states that the drawing is not modified, which tells the agent when this export is appropriate. It does not explicitly list when-not-to-use cases or name an alternative, but 'The one way' implies no alternative exists, leaving only a minor gap.

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