Skip to main content
Glama

Connect shapes

connect_shapes

Creates BPMN-compliant connections between existing shapes—sequence flows within a process, message flows between participants, or associations to annotations—and returns each connection's id.

Instructions

Creates connections between existing shapes. The type follows the BPMN rules: sequence flow within a process, message flow between participants, association to an annotation. Returns the id of each connection.

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": {
      "connections": "<connections>"
    },
    "name": "connect_shapes"
  }
}

Input Schema

NameRequiredDescriptionDefault
connectionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden. It usefully discloses that the connection type is not agent-chosen but inferred (sequence flow / message flow / association) and that ids are returned, but says nothing about failure modes when ids are invalid or shapes are mismatched, nor about reversibility.

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?

Three short sentences, front-loaded with the action, then the type-resolution rule, then the return value. With no output schema, the final sentence about returning connection ids is load-bearing rather than filler.

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

Completeness4/5

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

For a single batch parameter with no annotations and no output schema, the description covers what it does, how the type is chosen, and what comes back. Gaps remain around error behavior and cross-scope connections, but the core is sufficient to invoke the tool 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 reported as 0%, though the nested item properties do carry short descriptions. The description adds real meaning the schema lacks: source/target must reference already-existing element ids, and there is deliberately no 'type' parameter because BPMN rules decide it. It still omits whether both endpoints must be in the same participant or diagram, which is exactly the kind of semantics an agent needs.

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?

Uses a specific verb+resource ('Creates connections between existing shapes') and adds that connection type is derived from BPMN rules, which tells an agent this is a structural authoring tool rather than a generic element editor like update_elements. It does not explicitly name which sibling creates the shapes first (add_shapes), but 'existing shapes' carries that implication.

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?

Implies a prerequisite (shapes must already exist) and implies batch usage via the array, but never states when to prefer this over update_elements or add_shapes, nor any exclusion such as connecting shapes across participants/diagrams. Usage must be inferred rather than read.

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