Skip to main content
Glama
C48H74

AutoCAD MCP Server

by C48H74

save_document

Destructive

Writes the active AutoCAD drawing over its current file only after explicit confirmation; unnamed drawings are refused and must use Save As in AutoCAD.

Instructions

Salva o desenho ativo POR CIMA do arquivo atual (operação destrutiva: exige confirm=true).

QUANDO USAR: só quando o usuário pediu para gravar. Desenho sem nome (nunca salvo) é recusado — peça ao usuário para usar SALVARCOMO no AutoCAD. Sem confirm=true retorna ok=false com a prévia. Parâmetros: confirm (bool). Exemplo: save_document(confirm=true).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description adds the concrete consequence (overwrites the current file), the gating requirement (confirm=true), the failure behavior without confirmation (ok=false with a preview), and a precondition refusal. That is meaningful detail beyond the structured fields.

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-loads the destructive warning, then when-to-use, precondition, parameter note, and a concrete call example. All sections are functional, though the labeled blocks and example make it longer than strictly necessary for a one-parameter tool.

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

Completeness5/5

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

For a destructive single-parameter mutation with an output schema present, the definition covers the safety profile, trigger condition, precondition failure, and confirmation gating. An agent has everything needed to call it correctly without opening the schema.

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?

The single 'confirm' parameter has 0% schema description coverage, so the description must carry it — and it does: it states the parameter is required in practice to proceed and what happens when it is absent (ok=false plus preview). It stops short of explaining the preview payload itself, though the output schema covers returns.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource with scope qualifier: 'Salva o desenho ativo POR CIMA do arquivo atual' (saves the active drawing over the current file). The overwrite semantics and destructive nature immediately separate it from adjacent tools like dxf_export or plot_to_pdf.

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

Usage Guidelines5/5

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

Explicit 'QUANDO USAR: só quando o usuário pediu para gravar' gives a clear trigger condition, and it names a refusal case (unnamed drawing, never saved) plus the remediation (use SAVEAS in AutoCAD). Nothing about when to invoke is left to inference.

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