Skip to main content
Glama

Remove a figure or connector

remove_shape
Destructive

Remove one object; a figure's incident connectors are removed in the same revision. Requires editToken and latest revision.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPublic drawing UUID (last component of its /draw/<uuid> URL).
shapeIdYesID of the object to remove. Removing a figure also removes its incident connectors, as in the editor.
revisionYesRevision from create_drawing, get_drawing or the previous edit. Stale revisions fail; read again before retrying.
editTokenYesPrivate editing capability returned by create_drawing. Never place it in a URL or public answer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already mark the tool as destructive, so the description goes further by disclosing the cascading behavior—removing a figure also removes its incident connectors in the same revision. This adds meaningful behavioral context beyond the annotation hints and does not contradict them.

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?

The description is two crisp sentences, front-loading the action and scope before the prerequisites. Every clause earns its place with no redundancy or filler.

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?

For a destructive single-object removal tool with rich parameter descriptions and annotations, the description covers the core behavior, the cascading deletion effect, and the key prerequisites. Nothing essential for invoking the tool correctly appears to be missing.

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 the baseline is 3; the schema already documents each parameter clearly, including editToken privacy and stale-revision failures. The description reinforces the editToken and revision requirements but does not add detail beyond what the schema provides.

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?

The description states a specific action ('Remove one object') and clarifies the resource scope, including that incident connectors are removed with a figure. This clearly distinguishes it from siblings like add_shape and update_shape despite the title being slightly broader.

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?

The description provides clear operational context by requiring editToken and the latest revision, which are essential preconditions for a destructive edit. It does not explicitly name alternatives or exclusion cases, but since no other sibling handles deletion, the intended use 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.

Resources