Skip to main content
Glama
C48H74

AutoCAD MCP Server

by C48H74

draw_line

Destructive

Draws a line between two coordinate points in AutoCAD model space, optionally on a specified layer. Use it for axes, references, and simple layouts; undo with Ctrl+Z.

Instructions

Desenha uma linha no espaço modelo. Desfazível com um Ctrl+Z.

QUANDO USAR: eixos, referências e traçados simples. Parâmetros: start/end ([x, y] ou [x, y, z] na unidade do desenho), layer (existente; opcional — sem layer usa a camada ativa). Exemplo: draw_line([0, 0], [1500, 0], layer="EIXOS").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endYes
layerNo
startYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the mutation profile is covered. The description adds genuinely new behavioral context: the operation is undoable with Ctrl+Z, and omitting layer falls back to the active layer. Those are real traits beyond the structured data.

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?

Front-loaded purpose, then a when-to-use block, then parameters, then a concrete example — a clean, scannable structure. It is slightly label-dense and the example could be tighter, but no sentence is wasted.

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?

Output schema exists, so return values need no explanation, and the description covers purpose, usage, parameter formats, layer preconditions and undo behavior. It does not state what happens if the named layer is missing, which is the only material gap.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden and does so: start/end accept [x, y] or [x, y, z] in drawing units, and layer must be an existing layer and is optional with a documented active-layer default. All three parameters gain meaning absent from the schema.

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 and resource ("Desenha uma linha no espaço modelo") and scopes it to axes, references and simple traces, which implicitly separates it from draw_polyline. The scope note does the work of differentiation without naming the sibling explicitly, so it falls just short of a 5.

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?

A dedicated "QUANDO USAR" line tells the agent when this tool fits (axes, references, simple geometry) and, by contrast, when a more complex primitive is warranted. It stops short of naming the alternative tools or stating exclusions outright, so a 4 rather than a 5.

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