Skip to main content
Glama
C48H74

AutoCAD MCP Server

by C48H74

delete_entities

Destructive

Deletes AutoCAD entities by handle after confirmation: run dry_run=true to preview, then confirm=true to remove them. All-or-nothing; missing handles cancel deletion.

Instructions

Apaga entidades pelos handles. DESTRUTIVO: exige confirm=true. Tudo-ou-nada; um Ctrl+Z desfaz.

QUANDO USAR: só quando o usuário pediu para apagar. FLUXO: dry_run=true lista o que seria apagado; depois confirm=true. Se algum handle não existir, nada é apagado e o erro lista os ausentes. Parâmetros: handles (lista de strings hex), confirm, dry_run. Exemplo: delete_entities(["2F1A", "2F1B"], dry_run=true).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNo
dry_runNo
handlesYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, it discloses that confirm=true is mandatory, that the operation is all-or-nothing, that a Ctrl+Z undoes it, and that a nonexistent handle aborts the whole batch with the missing handles listed in the error. That is unusually rich behavioral context.

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?

Front-loads the destructive warning, then when-to-use, flow, parameters and an example in a tight, well-ordered block. Every sentence earns its place.

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?

An output schema exists, so return values need no explanation, and the description covers preconditions, error behavior, and the confirmation flow. Nothing an agent needs to call this correctly is missing.

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 coverage is 0%, so the description must carry the load, and it does reasonably well: handles is a list of hex strings, dry_run previews what would be deleted, confirm gates the actual deletion, plus a concrete usage example. It stops short of documenting defaults or full type detail, but the critical semantics are present.

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 (delete entities by handle) with scope clearly bounded. It does not differentiate itself from the near-identical sibling dxf_delete_entities, leaving an agent to infer which tool to pick between them.

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?

Explicitly states WHEN TO USE ('only when the user asked to delete') and lays out the required flow (dry_run first, then confirm=true). The alternative path is named and conditioned, leaving nothing to inference.

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