Skip to main content
Glama

Link a task to a decision

link_decision
Idempotent

Links a BPMN task to a DMN decision, converting it to a business rule task, or unlinks it when the decision ID is empty. Writes Camunda 8 zeebe:calledDecision metadata.

Instructions

Links a task to a DMN decision of the diagram (a plain task becomes a business rule task), or unlinks it when decisionId is empty. The link is written for BPMN-Pilot and for Camunda 8 (zeebe:calledDecision). Use get_decisions for the ids.

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": {
      "elementId": "<elementId>",
      "decisionId": "<decisionId>"
    },
    "name": "link_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
elementIdYesId of a diagram element, as returned by get_shapes
decisionIdYesId of the decision, or an empty string to unlink

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.6

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and idempotentHint=true, and the description stays consistent with that (linking again is a no-op re-link). It adds engine-level behavior not in the annotations: the link is persisted for both BPMN-Pilot and Camunda 8 via zeebe:calledDecision, which tells the agent the change is portable and engine-significant. It does not mention failure modes or whether the change requires a save.

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, front-loaded with the primary action, then the unlink branch, then the id source. No filler and nothing buried at the end.

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 two-parameter diagram mutation, the description covers direction of the change, the unlink sentinel, id provenance, and cross-engine persistence. Minor gaps remain around preconditions (element must be a task) and whether the mutation is committed to a saved version, but nothing essential to invoking it is missing.

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?

Schema coverage is 100% and both parameters are documented there, so the baseline would be 3. The description still adds value by naming the id source (get_decisions) and by restating the empty-string sentinel as an operation switch rather than an ordinary value, making the unlink path explicit.

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?

Names a specific verb and resource ('Links a task to a DMN decision'), and adds the resulting side effect ('a plain task becomes a business rule task') plus the inverse operation when decisionId is empty. That is enough for an agent to distinguish it from siblings like get_decisions or set_decision_table without opening a schema.

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?

Gives a clear conditional branch: pass an id to link, pass an empty string to unlink. It also routes the agent to get_decisions to obtain ids, which is real when-to-use guidance. It stops short of explicit exclusions, e.g. what to do if the element is already bound to a different decision or is not a plain task.

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