Skip to main content
Glama

Delete shapes

delete_shapes

Remove selected shapes from a shared whiteboard for everyone by referencing each shape’s ID, node key, or label text, with an optional display speed for changes.

Instructions

Removes exactly these shapes, for everyone. (edit_diagram remove also takes a box's arrows and labels.)

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": {
      "refs": "<refs>"
    },
    "name": "delete_shapes"
  }
}

Input Schema

NameRequiredDescriptionDefault
refsYesa shape: its id, a node key you used, or the text on it
speedNoHow fast shapes appear, so people can follow along (default normal). instant for big changes nobody needs to watch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that deletion affects every collaborator ("for everyone"), which is important for a shared board. It omits reversibility (undo exists as a sibling), whether missing or duplicate refs error out, and what happens to elements attached to the removed shapes.

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?

Two sentences, no filler, and the destructive scope is front-loaded ahead of the sibling comparison. Every clause carries information.

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

Completeness5/5

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

Hmm, reassessing: the tool is simple (2 params, fully documented schema, no output schema, no annotations), so the description's burden is mainly scope and effect. It delivers scope, multi-user impact, and a key alternative, which is sufficient for an agent to call it correctly.

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 description coverage is 100%, so both parameters are already documented, including refs accepting an id, node key, or shape text. "Exactly these shapes" adds a mild emphasis on precise targeting but nothing about the speed parameter or the 500-item cap beyond what the schema states.

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?

"Removes exactly these shapes, for everyone" gives a specific verb, resource, and blast radius, and the parenthetical contrasts it with edit_diagram remove, which also deletes a box's arrows and labels. It stops short of 5 because the consequence for those connected arrows/labels is only implied, not stated for this tool.

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?

The mention of edit_diagram remove is the only routing hint, and it is framed as a behavioral difference rather than an instruction. An agent can infer "use edit_diagram remove if you also want arrows and labels gone," but the description never says when to prefer each.

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