Skip to main content
Glama

Write a decision table

set_decision_table
Destructive

Creates a DMN decision table or replaces an existing decision’s table in the BPMN diagram, optionally linking it to a task that should call the decision.

Instructions

Creates a DMN decision with its decision table, or replaces the table of an existing decision (decisionId), in the decision model kept in the diagram file. A new decision gets one input data per input in the requirements diagram. linkTo links a task to it (a plain task becomes a business rule task, linked for Camunda 8 too). Entries are FEEL: "-" or an empty string for any value; text values may be given without quotes when the type is string. Returns the decision id and the findings on the table.

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": {
      "name": "<name>",
      "inputs": "<inputs>",
      "outputs": "<outputs>",
      "rules": "<rules>"
    },
    "name": "set_decision_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDecision name, in business words, for example "Assess the credit risk"
rulesYes
inputsYes
linkToNoId of the task that calls this decision
outputsYes
hitPolicyNoDefault UNIQUE
decisionIdNoId of an existing decision to replace its table; omit to create a decision
aggregationNoWith COLLECT only

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.6

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and non-idempotent, and the description is consistent with that, spelling out that an existing decision's table is replaced rather than appended. Beyond the annotations it discloses two non-obvious side effects: auto-creation of one input data per requirements-diagram input, and linkTo converting a plain task into a business rule task, plus what the call returns.

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?

Four sentences, front-loaded with the create-vs-replace distinction, then side effects, then the FEEL encoding rule, then the return value. No filler, no restating of the title, and each sentence carries distinct information an agent needs before calling.

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 an 8-parameter destructive mutation with no output schema, the description covers the operation modes, the key side effects, entry encoding, and the return payload (decision id plus findings). Remaining gaps are minor: it doesn't say whether the replaced table's prior rules can be recovered, nor what happens if the findings report problems.

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?

With 63% schema description coverage and 8 parameters, the description compensates well for the semantically tricky ones: FEEL entry syntax ("-" or empty string for any value, unquoted text for string types), linkTo's task-retargeting effect, and decisionId's create-vs-replace switch. It adds nothing for hitPolicy, aggregation, name, or the type enums, which remain schema-only, so it is a solid but partial supplement rather than full coverage.

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?

The description opens with a specific verb and resource plus both operating modes: "Creates a DMN decision with its decision table, or replaces the table of an existing decision (decisionId)". It also scopes where the artifact lives ("the decision model kept in the diagram file"), so an agent can distinguish this write tool from read-side siblings like get_decisions.

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?

It clearly states how to switch modes ("omit decisionId to create a decision") and explains the optional linkTo path including the Camunda 8 variant. What's missing is explicit routing against siblings such as link_decision and test_decision: the description never says when to use those instead, leaving the agent to infer it from names.

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