autocad-mcp-pro
v1.8.0Production-grade AutoCAD MCP server — COM API + ezdxf dual engine
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
drawing_info Drawing Info
Get comprehensive metadata for the current drawing. Full description: describe_tool.
entity_list List Entities
List entities in the drawing with optional type and layer filters. Full description: describe_tool.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Return a columnar {fields, rows, count, offset, total, truncated, next_offset} envelope instead of dicts: much cheaper per row, and the only shape that reports truncation. |
fields | Project to these fields, in this order (e.g. ['handle','type','layer']); 'properties.<key>' reaches one nested value. Omit for the full record; an unknown name errors and lists the valid ones. | |
layer_filter | Filter by layer name | |
limit | integer | Maximum entities to return |
offset | integer | Number of entities to skip |
type_filter | Filter by entity type: LINE, CIRCLE, ARC, LWPOLYLINE, TEXT, MTEXT, INSERT, HATCH, etc. |
cad_batch Batch: Run Tools
Execute an ordered list of tool calls in ONE round trip. Full description: describe_tool.
| Parameter | Type | Description |
|---|---|---|
steps * | array | Ordered steps. Each: {'tool': <tool name>, 'args': {...}, 'bind': <optional name>}. 'bind' names this step's result so a later step can reference it as '$name' (its handle), '$name.field' or '$name.li… |
dry_run | boolean | Validate every step against its tool's real JSON Schema and execute nothing. |
expected_revision | Run only if the document's content revision is still this one (a dry run's `preview.revision`); otherwise refused stale_revision, no step run. | |
label | Labels the batch's history rows, e.g. 'round 2' (1-200 chars). | |
on_error | string | auto (default) = all or nothing: rollback when a step mutates, stop when every step reads. 'stop' halts at the first failure and keeps what ran; 'continue' runs every step; |
operation_id | Your own id for this batch (1-128 printable characters). | |
preconditions | A dry run's `preview.preconditions` ({handle, fingerprint} per literal handle): run only if every entity is exactly as previewed; otherwise refused stale_revision, no step run. | |
verbose | boolean | Return each step's full result instead of just its handle. |
search_tools
Find tools for a job, in English or as an AutoCAD command (FILLET, QSELECT).
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | integer | default 5, max 25 |
risk | string | any|write|read; filtered hits are reported |
call_tool
Call a tool found by search_tools with its arguments.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
arguments | object |
describe_tool
Full schema, risk and examples of a tool (name) or several (names).
| Parameter | Type | Description |
|---|---|---|
name | string | |
names | array |