Skip to main content
Glama

delete

Destructive

Remove an Excalidraw element and detach surviving connectors so remaining diagram connections stay intact.

Instructions

Delete an element and detach surviving connectors.

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": {
      "element_id": "<element_id>"
    },
    "name": "delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
element_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • removedInput schema / properties / element_id / pattern
      Removed value: -".*\\S.*"
  2. Changed1 schema field changedv0.3.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "deleted_ids": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "element_id": {
      -      "type": "string"
      -    },
      -    "status": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "status",
      -    "element_id",
      -    "deleted_ids"
      -  ],
      -  "type": "object"
      -}New value: +null
  3. First observedv0.2.1

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine value beyond that by disclosing the cascade effect on connectors, but says nothing about irreversibility, undo interplay, or behavior when element_id does not exist.

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?

One short sentence, front-loaded with the verb and the operation's key side effect. Nothing redundant and nothing buried.

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

Completeness3/5

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

For a destructive single-target mutation with no output schema, the definition should say what happens to attached connectors' ids and whether a not-found id errors or silently succeeds. The cascade note is a good start, but the description is thin relative to the tool's impact.

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

Parameters2/5

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

Schema description coverage is 0% and the single parameter element_id is never mentioned in the description. It does not clarify which element types are accepted (shapes, text, frames, connectors) or the format of the id, so the parameter carries no meaning beyond the bare schema type and length constraints.

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?

The description states a specific verb and resource ('Delete an element') and adds a real scoping detail: surviving connectors are detached. It does not distinguish this from sibling 'clear' (whole-scene wipe) or 'batch_mutate', so an agent must infer the difference rather than being told.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no mention of 'clear' for bulk removal or 'batch_mutate' for multiple deletions, and no note that 'undo' may restore the result. Usage is only implied by the verb.

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