Skip to main content
Glama

Remove elements

remove_elements

Delete BPMN shapes or connections by ID; deleting a shape also removes its connected edges.

Instructions

Removes shapes or connections. Removing a shape also removes its connections.

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": {
      "ids": "<ids>"
    },
    "name": "remove_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full disclosure burden. It does usefully warn that removing a shape cascades to its connections, which is the single most important side effect, but it says nothing about whether deletion is permanent or undoable, whether connections can be removed independently in the same call, what happens with unknown ids, or what the response looks like.

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 short sentences with zero filler; the destructive scope is front-loaded and the cascade warning immediately follows. Nothing could be trimmed without losing information.

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

Completeness2/5

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

This is a destructive, unannotated tool with no output schema, so the description needs to carry weight about irreversibility, permissions, and results. It covers the cascade side effect but omits permanence, error behavior, and return values, leaving an agent unable to judge risk before calling.

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% at the top level, so the description must compensate for the single required `ids` array and does not. It never explains that ids may mix shape and connection identifiers, that the array is a batch of one-or-more targets, or where those ids come from, leaving only the nested schema hint ("as returned by get_shapes") to do the work.

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 uses a specific verb ("Removes") and names the exact resources affected ("shapes or connections"), which is more precise than the bare title and distinguishes it from siblings like update_elements or style_elements. It stops short of explicitly contrasting itself with any named alternative, so it lands at clear-but-not-differentiated.

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 guidance on when to call this versus update_elements, set_diagram_xml, or any other sibling, and no stated prerequisites such as obtaining ids from get_shapes first. The only usage-adjacent information is the cascade warning, which is behavioral rather than a routing rule.

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