Skip to main content
Glama
excalidraw-mcp

excalidraw-mcp

by thiendt1608

delete_element

Removes a specific Excalidraw diagram element by its ID, helping you clean up drawings when an element is no longer needed.

Instructions

Delete an element by its ID.

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": {
      "id": "<id>"
    },
    "name": "delete_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, and it discloses nothing beyond the verb. It does not say whether deletion is permanent, whether attached connectors/edges are cascaded or orphaned, whether the element must be unlocked or ungrouped, or what happens when the ID is unknown. For a destructive canvas mutation this is a substantial omission.

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?

A single front-loaded sentence with no filler or redundancy; nothing could be trimmed. Its terseness is a limitation of content rather than an issue of structure.

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

Completeness1/5

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

The tool is a destructive mutation with no annotations, no output schema, and an undocumented parameter. The definition supplies no return information (deleted object vs. success flag), no irreversibility warning, and no failure behavior, so it is not complete enough to invoke confidently.

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%, so the schema only says "id" is a required string with no explanation. The description adds only that the ID identifies the element, offering no guidance on where the ID comes from, its format, or whether it is a node ID versus a component/property ID. It barely compensates for the coverage gap.

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") plus the keying mechanism ("by its ID"), so an agent can tell it removes one element rather than creating or updating one. It stops short of explicitly distinguishing itself from siblings such as clear_canvas (bulk removal) or query_elements, leaving that differentiation to the names alone.

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 guidance, no mention of when not to use it, and no alternative named for bulk removal (e.g., clear_canvas) or for looking up IDs first (e.g., query_elements). The agent must infer all routing decisions from the tool name.

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