Skip to main content
Glama
U-C4N
by U-C4N

Run AutoCAD Command

system_run_command

Execute AutoCAD commands directly via COM backend to automate drawing tasks and entity modification.

Instructions

Execute an AutoCAD command string directly (COM backend only).

Append \n for Enter. Example: '_LINE 0,0 100,0 \n'.

IMPORTANT: commands that finish at an option menu (e.g. -LINETYPE, -LAYER, -STYLE return to '[?/Create/Load/Set]:' after their action) need an EXTRA blank line or 'X\n' to exit, otherwise AutoCAD stays at a prompt and the next COM call will deadlock. Example: '-LINETYPE _LOAD CENTER acad.lin\n\n'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesAutoCAD command string (e.g. '_ZOOM E', '_REGEN', '_EXPLODE')

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

The description discloses that improper formatting can cause deadlock, and notes the COM backend limitation. This adds significant risk awareness beyond the readOnlyHint annotation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise yet comprehensive, structured with a one-sentence purpose, a formatting example, and a highlighted warning. No redundant information.

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?

While the description covers input formatting and risks well, it does not explain the output or return value, and it omits prerequisites like requiring an open drawing. Given the complexity of running arbitrary commands, this leaves some gaps.

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?

The input schema provides a basic description and examples for the 'command' parameter. The tool description adds critical details about newline handling and the need for extra blank lines for menu-based commands, which are not covered in the schema.

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 explicitly states the verb 'Execute' and the resource 'an AutoCAD command string', with immediate clarification of the COM backend. This clearly differentiates from sibling tools which are specific named operations.

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?

The description provides explicit formatting instructions, examples, and a crucial warning about commands that finish at an option menu needing an extra blank line to avoid deadlock. However, it does not explicitly state when to choose this tool over the many specific sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/U-C4N/Autocad-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server