Skip to main content
Glama
CaeliaEve

AutoCAD MCP Ultra

by CaeliaEve

Delete Viewport

viewport_delete
Destructive

Delete viewports by handle. For a layout's main viewport, enable force to remove it, clean up view state, and repair the current-viewport pointer to prevent dangling references.

Instructions

Delete a viewport.

The layout's main viewport needs force=true; deleting it removes the tab's own view state, and the layout's current-viewport pointer is repaired so the file does not carry a dangling reference that only CAD would notice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoAllow deleting the layout's main viewport.
handleYesViewport entity handle (from viewport_list).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The annotations already flag destructiveHint=true, so the description does not need to restate basic destructiveness. It adds valuable behavioral detail: deleting the main viewport removes the tab's own view state and repairs the current-viewport pointer to avoid dangling references. This goes well beyond the annotation and helps the agent anticipate side effects.

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?

The description is extremely concise: one clear action sentence followed by a focused caveat about the main viewport. There is no redundant phrasing or filler, and the most important operational detail is front-loaded.

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?

Given the tool's two parameters, full schema coverage, destructiveHint annotation, and existing output schema, the description covers the essential edge case that would otherwise surprise an agent. Nothing critical for correct invocation 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 100%, so the baseline is 3. The description adds meaningful context for the force parameter by explaining that the main viewport needs force=true and describing what happens when it is deleted. This reinforces the schema description and helps the agent understand when and why to set force.

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?

The description opens with a specific verb and resource — 'Delete a viewport.' This clearly distinguishes the tool from sibling viewport tools such as viewport_list, viewport_create, viewport_set_scale, and viewport_lock. No ambiguity remains about what action this tool performs.

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 description gives a clear condition for a special case: the layout's main viewport requires force=true. This tells the agent when to set the force flag. It does not explicitly name alternatives or exclusions, but for a deletion tool with no near-equivalent sibling, the context is adequately clear.

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

Install Server

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/CaeliaEve/autocad-mcp-ultra'

If you have feedback or need assistance with the MCP directory API, please join our Discord server