Skip to main content
Glama

Change a diagram on the board

edit_diagram

Modify an existing whiteboard diagram in place: add, update, remove, or relabel nodes and edges, and optionally arrange connected shapes into a tidy layout while keeping the board intact.

Instructions

Changes what is already on the board, whoever drew it, without redrawing the rest: the user's moves, colours and text stay as they are. Refer to shapes by id, by a node key you used before, or by the text on them (e.g. "API"). New nodes go next to what they connect to, continuing the flow; their arrows are drawn as they appear. remove takes a box's arrows and labels with it. relayout slides the connected boxes into a fresh tidy layout (only when asked to tidy or rearrange).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "edit_diagram"
  }
}

Input Schema

NameRequiredDescriptionDefault
speedNoHow fast shapes appear, so people can follow along (default normal). instant for big changes nobody needs to watch
removeNoShapes to remove (a shape: its id, a node key you used, or the text on it); a box takes its arrows with it
spacingNo
relayoutNoSlide the connected boxes into a fresh layout afterwards (default false)
add_edgesNo
add_nodesNo
directionNoFlow direction (default: read from the arrows already there)
update_nodesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does real work: it discloses that existing user edits (moves, colours, text) are preserved, that remove cascades to a box's arrows and labels, that new nodes are placed adjacent to their connections, and that relayout repositions connected boxes. It does not mention reversibility, permissions on shapes drawn by others, or behaviour when a referenced key no longer exists.

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 preservation guarantee, then the referencing rule, then per-operation behaviour. Dense and largely waste-free, though the semicolon-chained clauses make it slightly harder to scan than a short bulleted structure would.

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 an eight-parameter mutation tool with no annotations and no output schema, the description covers intent and the main side effects but omits what the call returns (e.g. node keys for later reference), collision behaviour for duplicate keys, and whether the edit can be undone. These are the remaining questions an agent would need answered before invoking it confidently.

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 50%, and the description compensates for much of the gap by explaining the shared reference scheme (id, prior node key, or visible text) used by remove, update_nodes.ref and near, plus the default placement and arrow-drawing behaviour for new nodes. Gaps remain for spacing, add_edges styling fields, and node sizing, which are undocumented in both places.

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 scope: 'Changes what is already on the board ... without redrawing the rest', which clearly separates it from a fresh-draw operation and from pure deletion. The distinction is conveyed through the preservation clause rather than by naming a sibling tool, so an agent must infer the boundary with draw_diagram or update_shapes.

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

Usage Guidelines3/5

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

There is one explicit conditional: relayout should only be used 'when asked to tidy or rearrange'. The rest is implied usage — the tool is for modifying existing content — with no statement of when not to use it or which sibling to pick for creating a new diagram. Adequate but leaves the biggest routing decision to inference.

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