Skip to main content
Glama
C48H74

AutoCAD MCP Server

by C48H74

dxf_create_layer

Destructive

Create or confirm a DXF layer before drawing by setting its name, ACI color, and linetype, with an option to save a copy and preserve the original file.

Instructions

Cria (ou confirma) uma camada em um DXF.

QUANDO USAR: preparar camadas (SUPORTES, COTAS, EIXOS) antes de desenhar. Parâmetros: path; name; color (ACI 1-255); linetype (ex. "DASHED"); output_path (salva cópia, preserva o original). Exemplo: dxf_create_layer(path="a.dxf", name="COTAS", color=3)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
pathYes
colorNo
linetypeNo
output_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4/5.0
Behavior4/5

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

Annotations carry the safety profile (readOnlyHint=false, destructiveHint=true), and the description adds real context beyond them: '(ou confirma)' signals idempotent ensure-semantics, and output_path 'salva cópia, preserva o original' discloses that a copy can be written preserving the source (implying in-place mutation otherwise). The destructive nature itself is left to annotations.

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?

Well-structured with labelled sections (purpose, QUANDO USAR, Parâmetros, Exemplo) and front-loaded purpose. Every line earns its place; the example is genuinely useful. Minor redundancy in restating the tool name in the example.

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?

With an output schema present, return values need not be explained, and annotations cover the safety profile. The description supplies purpose, usage timing, param meanings, and a call example, making it usable as-is. It could yet clarify required-vs-optional params and destructive in-place behavior.

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 description coverage is 0%, so the description must compensate, and it largely does: it names all five parameters and enriches them (color = ACI 1-255, linetype example 'DASHED', output_path semantics). It does not distinguish required (path, name) from optional/defaulted params, keeping it from a 5.

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?

States a specific verb+resource: 'Cria (ou confirma) uma camada em um DXF.' An agent can immediately tell this creates/ensures a layer. However, it does not differentiate from the sibling create_layer, so sibling ambiguity remains.

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 'QUANDO USAR' line gives clear context: prepare layers (SUPORTES, COTAS, EIXOS) before drawing. This tells the agent the correct phase to invoke it. No explicit when-not-to-use or named alternative (e.g., create_layer) is given, so not a 5.

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