Skip to main content
Glama
CaeliaEve

AutoCAD MCP Ultra

by CaeliaEve

Run AutoCAD Command

system_run_command

Execute AutoCAD commands directly by sending a command string via COM to automate tasks. Add newline for Enter; add extra blank line for option menus to avoid deadlocks.

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'.

A verb denylist refuses obviously destructive commands, but it is a guardrail against issuing ERASE ALL by accident, NOT a security boundary — AutoCAD accepts hundreds of commands and any loaded ARX/LISP adds more. Prefer the typed tools (entity_delete, drawing_save_as, block_insert, drawing_purge): they validate their arguments, which a free-text command string cannot.

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 critical behavior not visible in annotations: the need to append '\n' for Enter, the extra blank line or '_X\n' to exit option menus, and the deadlock risk if the prompt is left open. It also reveals the verb denylist as a guardrail, not a security boundary, which is an important caveat for the agent.

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 longer than average but every sentence carries meaningful information: a usage pattern, a deadlock warning, and a guardrail/security clarification. It is structured with the example first and the warning clearly marked 'IMPORTANT'. Slight redundancy in the example could be trimmed but the length is justified by the complexity.

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?

The description fully covers the single parameter's syntax, the most common failure mode (deadlock), the limitations of the denylist, and exactly which sibling tools to use instead. With the output schema and annotations present, nothing critical is missing for an agent to invoke 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?

Schema coverage is 100%, so the baseline is 3. The description adds value by explaining the '\n' convention, giving examples, and describing the extra blank line requirement for commands ending at option menus. This goes beyond the schema's simple 'AutoCAD command string' description.

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 states 'Execute an AutoCAD command string directly (COM backend only)', which clearly identifies the verb (execute), resource (AutoCAD command string), and the technical context (COM backend). It is also differentiated from sibling tools like system_run_lisp by its focus on command strings rather than LISP code.

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?

The description explicitly tells the agent to prefer typed sibling tools (entity_delete, drawing_save_as, block_insert, drawing_purge) and explains why: they validate arguments. It also warns against using this tool for destructive commands, which is clear guidance on when not to use it.

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/CaeliaEve/autocad-mcp-ultra'

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