Skip to main content
Glama

delete_area

Destructive

Deletes everything on a schematic page that touches a specified rectangle, with a default dry-run listing objects before confirming deletion via apply=true.

Instructions

Delete everything on a page that touches the rectangle (Capture's area select takes objects that intersect it, not only enclosed ones, and the bounding box of a part includes its text).

With apply=false (default) nothing is deleted: the result lists what would go. Check it, then call again with apply=true; the page must be shown for that. "remaining" lists what still touches the area afterwards.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "page": "<page>",
      "x1": "<x1>",
      "y1": "<y1>",
      "x2": "<x2>",
      "y2": "<y2>"
    },
    "name": "delete_area"
  }
}

Input Schema

NameRequiredDescriptionDefault
x1Yes
x2Yes
y1Yes
y2Yes
pageYes
applyNo
designNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, yet the description adds substantial context: the geometric intersect-not-enclose rule, that a part's bounding box includes its text, the dry-run default, and the 'remaining' post-state report. It stops short of stating permissions, irreversibility, or what happens to locked/hidden objects.

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 with the destructive scope, followed by the safety protocol, which is the right order for a destructive tool. The parenthetical is slightly convoluted but carries non-obvious semantics that justify its length.

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?

Covers the dry-run workflow, the selection geometry, a precondition, and what the result reports ('remaining'), which is valuable since there is no output schema. The undocumented 'design' parameter and lack of coordinate guidance are the only real gaps for a 7-parameter destructive tool.

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?

With 0% schema description coverage the description must carry the load, and it does for the most consequential parameter, apply (default false, dry-run semantics), plus the x1/y1/x2/y2 rectangle meaning through the intersection rule. It leaves 'design' entirely unexplained and gives no units or coordinate-space context for the bounds.

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 ('Delete everything on a page that touches the rectangle') and immediately disambiguates scope by explaining that intersection, not enclosure, is the selection rule. An agent knows exactly what this tool does without opening the schema.

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?

Gives an explicit two-step protocol: call with apply=false first, inspect the returned list, then re-call with apply=true. It also states the precondition that 'the page must be shown for that', which an agent could not infer on its own.

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