Skip to main content
Glama
haianhdskt-boop

autocad-ai-mcp

Execute Ezdxf Script

execute_ezdxf_script

Execute custom ezdxf Python scripts to automate parametric drafting and calculations, with access to document, model space, and math functions. Assign results to a variable for direct output.

Instructions

Execute custom Python code using ezdxf for advanced parametric drafting or calculations. Variables provided in scope: doc, msp, ezdxf, math, target_file, result. Assign any final output message to variable result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
script_codeYes
target_fileNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the burden of explaining behavior. It usefully discloses that code is executed, which variables are available, and how result should be assigned. However, it does not mention side effects, whether the drawing is modified, error behavior, or security implications of arbitrary code execution.

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 compact, front-loaded, and contains only essential information. It avoids filler while still communicating the execution model and required result convention.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the high complexity of arbitrary code execution and the absence of annotations, the description is not sufficiently complete. It lacks clarity on target_file, what doc/msp represent, how the result is used, and whether changes are persisted. The presence of an output schema reduces some burden, but the core execution contract remains underspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, and the description only lightly addresses parameters. script_code is implied as custom Python code, and target_file appears in the variable list but its meaning as a parameter is not explained. The description does not compensate for the missing schema documentation.

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 clearly states it executes custom Python code with ezdxf for parametric drafting or calculations, identifying both the verb and the resource. It is distinct from the sibling tools, though it does not explicitly name alternatives or contrast with them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'advanced parametric drafting or calculations' implies when it should be used, but there are no explicit conditions, exclusions, or guidance comparing it to alternatives like generate_autocad_scr or add_entities. The usage context is implied rather than stated.

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

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/haianhdskt-boop/autocad-ai-mcp'

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