Skip to main content
Glama

Edit Diagram

edit_excalidraw
Destructive

Edit an existing Excalidraw diagram with natural language instructions. Modifies the diagram based on your instructions and regenerates. Requires diagram_id from a previous create_excalidraw response.

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": {
      "diagram_id": "<diagram_id>",
      "instructions": "<instructions>"
    },
    "name": "edit_excalidraw"
  }
}

Input Schema

NameRequiredDescriptionDefault
diagram_idYesThe diagram_id from a previous create_excalidraw response. MUST be from the actual response.
instructionsYesNatural language instructions describing what to change (e.g. 'add more detail to the flowchart', 'change colors to blue theme')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the write/destructive nature is covered structurally. The description adds useful context that the tool regenerates the diagram from natural-language instructions, but does not say whether prior edits are preserved, how regeneration affects existing elements, or whether the edit is reversible. With annotations carrying the safety profile, this is adequate but not rich.

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?

Three short sentences, front-loaded with the verb and resource, then the mechanism, then the hard prerequisite. No filler or redundant restatement of the title.

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?

For a two-parameter editing tool with no output schema, the description covers purpose, mechanism, and the critical prerequisite. It could say more about what comes back (e.g., whether a new diagram_id is issued) since the regeneration behavior matters for chained calls.

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

Parameters3/5

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

Schema coverage is 100%, so both parameters are fully documented in the schema, including the 'MUST be from the actual response' constraint. The description restates the diagram_id provenance rule but adds no syntax, format, or granularity guidance for the instructions parameter beyond what the schema examples provide. Baseline 3 applies.

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 (Edit), a specific resource (an existing Excalidraw diagram), and the mechanism (natural language instructions that regenerate the diagram). It also implicitly distinguishes itself from create_excalidraw by requiring a diagram_id from that tool's response.

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?

Clearly establishes the precondition (an existing diagram_id from a previous create_excalidraw call), which routes the agent away from this tool for new diagrams. It stops short of an explicit 'use create_excalidraw instead when...' exclusion, but the context is unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.