Skip to main content
Glama
haianhdskt-boop

autocad-ai-mcp

Add Layer

add_layer

Adds or updates a layer in a DXF drawing, setting color, linetype, lineweight, and description for CAD organization.

Instructions

Add a new layer or update an existing layer in a DXF drawing.

  • color: ACI number (1-255), color name ('red', 'cyan', 'green'), or hex ('#FF0000').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
colorNo
linetypeNoCONTINUOUS
file_pathYes
lineweightNo
descriptionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It does usefully reveal that the tool can update an existing layer rather than only creating one. However, it omits side effects such as file modification, whether existing layer properties are overwritten, persistence behavior, and any failure conditions.

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 short and front-loaded with the main action, followed by a compact, useful bullet about color formats. There is no filler or repetition. It sacrifices completeness in favor of brevity, but what is present is efficiently structured.

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?

For a mutating tool with no annotations and minimal parameter documentation, the description is incomplete. It does not clarify the required file_path and name semantics, update behavior, or how the optional parameters behave. An output schema may cover return values, but the operational context is still too thin.

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 description coverage is 0%, so the description must compensate. It explains the color parameter well with ACI numbers, color names, and hex values. However, it leaves name, file_path, linetype, lineweight, and description without any added semantic meaning beyond their types and defaults.

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 states a clear action and resource: 'Add a new layer or update an existing layer in a DXF drawing.' This distinguishes it from siblings like list_layers and add_entities, since it specifically targets layer definitions. It does not name sibling alternatives, but the core purpose is unambiguous.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus list_layers, add_entities, or execute_ezdxf_script. No conditions, prerequisites, or exclusions are provided, so an agent must infer when this tool is the right choice.

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