Skip to main content
Glama

Update elements

update_elements

Update BPMN element labels, types, documentation, and gateway branch probabilities in one call; type changes may return a new element ID.

Instructions

Renames elements, changes their type (for example Task to UserTask), fills in their Documentation field, or sets the probability of a gateway branch. A type change can produce a new id, returned in the result.

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": {
      "elements": "<elements>"
    },
    "name": "update_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
elementsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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, and it does surface one genuinely important side effect: a type change can produce a new id, returned in the result. That is exactly the kind of non-obvious behavior an agent needs. It still omits whether updates are atomic across the array, whether unspecified fields are preserved, what happens on invalid ids, and whether the operation is reversible.

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 highest-value fact — the possible id change — is placed last as a warning rather than buried. Every clause maps to a distinct capability of the tool.

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 nested-array mutation tool with no annotations and no output schema, the description covers the main capabilities and discloses the id-change return behavior, which partially substitutes for the missing output schema. It is thin on error/failure semantics and on what 'the result' actually contains, but nothing critical for a correct invocation is absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The reported 0% schema coverage is an artifact of the nested array structure; the nested properties are in fact described. The description nonetheless adds meaning on top of that by giving a concrete type-change example (Task to UserTask) and framing probability as gateway-branch-specific, which reinforces the schema's constraint. The eventDefinition field is not mentioned at all in the description, keeping it from a 5.

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 opens with concrete verbs tied to the resource: rename elements, change their type, fill the Documentation field, set gateway branch probability. That is far more specific than the title 'Update elements' and clearly separates it from siblings like add_shapes or style_elements. It stops short of naming any sibling outright, so it lands at 4 rather than 5.

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?

Usage is implied by the enumerated operations — an agent can infer it should call this to rename or retype an existing element rather than create one. However, there is no explicit when-to-use/when-not-to-use guidance, no mention of prerequisites such as needing an existing id from get_shapes, and no pointer to alternatives for styling or removal.

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