Make decision tree
make_decision_treeUse this when the user wants a decision tree drawn or solved: options of a decision, chance events with probabilities, and payoffs, for example "which option has the higher expected value" or "draw a decision tree for launching this product". Takes the tree as an indented outline or a JSON node list, the objective (max or min), a unit, decimals, a page size and a title. Rolls the tree back with fractions: the expected value of each node, the chosen option at each decision (ties listed), branch costs applied by a stated rule, and the risk profile of the chosen strategy. Refuses a tree whose chance probabilities do not add up to 1, naming the node and the sum, and end nodes without a payoff. Returns a summary, an interactive drawing, and PDF, SVG and CSV downloads. Up to 300 nodes. Does not estimate probabilities or give advice. Download links of large trees expire after about 1 hour.
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": "make_decision_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Unit or currency shown with values, up to 12 characters, e.g. "$", "EUR" or "hours". | |
| nodes | No | The tree as a JSON list instead of outline: each node has id, parent (not for the root), label, and p, cost or payoff as needed, e.g. [{"id":"r","label":"Launch?"},{"id":"a","parent":"r","label":"Do not launch","payoff":0}]. | |
| title | No | Title printed on the drawing and used in file names, up to 80 characters, e.g. "Product launch". | |
| outline | No | The tree as indented text, one node per line, children indented under their parent (spaces or tabs, "- " bullets allowed). The first line is the root. Fields after the label: p=<probability> on branches of a chance node, cost=<amount> on any branch, payoff=<amount> on end nodes; separate them with spaces or "|". A node whose branches have p is a chance node, a node with branches and no p is a decision, a node with no branches is an end node; "Decision:", "Chance:" or "End:" before a label states the type. Numbers: decimals (0.35, -1,200.50, $300), fractions (1/3), and percents for p (35%). Up to 300 nodes. Example: "Launch? | decision\n Launch | cost=200\n Strong demand | p=0.6 | payoff=1000\n Weak demand | p=0.4 | payoff=-300\n Do not launch | payoff=0". | |
| decimals | No | Decimals shown in the drawing and summary, 0 to 6 (default 2), e.g. 2. The CSV also has the fraction. | |
| objective | No | max (default): choose the option with the highest expected value, for profit or gain. min: choose the lowest, when payoffs are costs, losses or time. Example: max. | |
| page_size | No | PDF page: letter (default) or a4. Landscape unless portrait needs fewer pages. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| root | Yes | ||
| ties | Yes | ||
| unit | Yes | ||
| nodes | Yes | ||
| rules | Yes | ||
| shown | No | ||
| title | Yes | ||
| checks | Yes | ||
| counts | Yes | ||
| issues | Yes | ||
| decimals | Yes | ||
| strategy | Yes | ||
| warnings | Yes | ||
| downloads | Yes | ||
| objective | Yes | ||
| risk_profile | Yes |