Skip to main content
Glama

evaluate decision tree

evaluate_decision_tree
Read-onlyIdempotent

Decision tree expected value with rollback: give simple options (success probability, payoff if success / fail, upfront cost) or a full tree of decision / chance / outcome nodes. Returns the best path, expected value, outcome distribution, worst/best case, probability of loss, and for options the success probability at which the best choice would flip. Same engine as tools.oiyo.net.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "evaluate_decision_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
treeNoFull tree instead of options. Node: {label, kind: 'decision'|'chance'|'outcome', value (outcome only), branches: [{label, prob (chance branches, 0..1), cost, node}]}. Max 12 levels and 200 nodes.
optionsNo2-8 simple options. Give options or tree, not both.
questionNoThe decision being made, e.g. '신규 매장을 열까?'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered. The description adds value beyond that by disclosing the exact analysis outputs (best path, expected value, outcome distribution, worst/best case, loss probability) and by noting the engine matches tools.oiyo.net, which signals deterministic reproducible results. It does not mention error behavior for malformed trees or chance branches whose probabilities do not sum to 1.

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?

Two dense sentences with no filler: the method is front-loaded, the input alternatives follow, and the return list comes last. The output enumeration is long but earns its place because no output schema exists. The trailing 'Same engine as tools.oiyo.net' is borderline promotional but conveys reproducibility.

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-object tool with no output schema, the description is unusually complete: it names both input modes and lists all returned metrics, so an agent knows what it will get back. Gaps are minor: no statement about validation failures or how chance-branch probabilities are normalized, and the structural limits live only in the schema.

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% and every parameter (tree, options, question) already carries a detailed inline description, including node shape, probability ranges, and the max 12-level/200-node limits. The description restates the option fields and node kinds at a conceptual level but adds no syntax or constraint detail beyond the schema, so the baseline 3 applies.

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-resource pair (decision-tree expected value with rollback) and immediately scopes the two accepted input shapes: simple options versus a full decision/chance/outcome tree. It also enumerates what comes back, so an agent can tell this apart from the sibling calculators (analyze_swot, calculate_dcf_valuation, etc.) without opening any 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?

It clearly states the condition that selects each input mode ('give simple options ... or a full tree'), plus the flip-probability extra that only applies to the options mode. What is missing is any explicit exclusion or pointer to a sibling tool for adjacent questions (e.g., qualitative SWOT style analysis), but the usage context here is otherwise unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.