Skip to main content
Glama

Test a decision table

test_decision
Read-only

Evaluates a DMN decision table against input cases and returns matching rules and results per hit policy, or flags conflicts; read-only for checking and explaining decisions.

Instructions

Evaluates a DMN decision table of the diagram on input cases, without changing anything: for each case, the rules that apply and the result under the hit policy, or the conflict (two rules under Unique, different outputs under Any). Give each case its input values in column order, or as an object keyed by input label or expression. Without cases, builds one case per rule from its simple entries and says whether each rule fires. Use it after set_decision_table to check the table, and to explain it with examples. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
casesNoInput cases: each an array of values in column order, or an object { "input label or expression": value }. Omit for one case per rule
decisionIdYesId of the decision, as returned by get_decisions

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 readOnlyHint=true, so the safety profile is covered; the description still adds real value by explaining what is returned per case (applying rules, result under hit policy, and conflict detection under Unique/Any). It also discloses the default behavior when cases are omitted (one auto-built case per rule with a fires/does-not-fire verdict). Rate limits and the 50-case cap are left to the schema.

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?

Purpose is front-loaded in the first clause, and the conflict-detection and default-case behaviors follow in a logical order. Mild redundancy between "without changing anything" and the trailing "Read-only," which repeats the annotation.

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

Completeness5/5

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

For a two-parameter, read-only tool with no output schema, the description covers input formats, omit behavior, evaluation semantics, and error conditions (rule conflicts). An agent has everything needed to invoke it correctly and interpret the result.

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 coverage is 100%, so both parameters are already documented, including the column-order vs. keyed-object forms and the omit-for-default behavior. The description restates these formats but adds little beyond the schema text, which is the expected baseline-3 situation.

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?

States a specific verb and resource ("Evaluates a DMN decision table of the diagram on input cases") plus scope ("without changing anything"). It also implicitly distinguishes itself from set_decision_table, which mutates the table, so an agent can tell the check operation from the write operation.

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?

"Use it after set_decision_table to check the table, and to explain it with examples" gives clear sequencing and use cases. It lacks an explicit when-not or a named alternative for the opposite situation (e.g. where to go if the table fails), but the usage context is unambiguous.

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