Skip to main content
Glama

Add shapes

add_shapes

Add one or more BPMN shapes to a diagram, placing them by position or relative to existing elements and connecting them when needed. Returns created shape IDs.

Instructions

Adds one or more shapes. With "after", the shape is placed to the right of the given element and connected to it. With x and y, it is placed at that position without a connection. With neither, it is placed to the right of the diagram. A Lane is added at the bottom of its participant, which grows to make room. Returns the id created for each shape, and for each "key" given.

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": {
      "shapes": "<shapes>"
    },
    "name": "add_shapes"
  }
}

Input Schema

NameRequiredDescriptionDefault
shapesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/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 add useful non-obvious behavior: a Lane is inserted at the bottom of its participant and the participant grows to accommodate it, and per-shape ids are returned. It says nothing about failure modes, whether the operation is atomic across a shape list, or what happens with invalid types or ids.

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?

Three front-loaded sentences, each carrying distinct information, with the return-value contract placed last. Density is high with minimal filler, though the phrasing around the Lane case is slightly compressed.

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?

There is no output schema, and the description usefully states what is returned, which covers the main gap. For a tool whose schema exposes boundary events, lanes, and parent containment, the description leaves too much of that surface unexplained for an agent to call it confidently in complex cases.

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?

Top-level schema coverage is 0%, so the description is expected to compensate, and it does explain the after/x/y/neither decision rules and the 'key' round-trip in the return value. However it never mentions attachTo, interrupting, or eventDefinition — the boundary-event feature set encoded in the schema — leaving a meaningful share of behavior unexplained.

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?

"Adds one or more shapes" states a specific verb and resource, and the following sentences clarify that it is a diagram-creation call with placement options. It does not distinguish itself from siblings such as connect_shapes or update_elements, so an agent must infer that this is the element-creation 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 description explains the placement modes (after / x+y / neither) but never states when to choose this tool over alternatives like update_elements or connect_shapes, nor any prerequisite such as needing an existing diagram. Usage is only implied by the tool's nature.

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