Zovo Decision Tree
Solves and draws a decision tree for business choices from your own numbers.
使うべきか
品質と安全性
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"decision-tree": {
"url": "https://decision-tree.zovo.one/mcp"
}
}
}リモートエンドポイント
https://decision-tree.zovo.one/mcpstreamable-httpできること
ツール一覧
ツール(2)
🟢make_decision_tree(outline, nodes, objective, unit, decimals, ...)
Use 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.
入力スキーマ
{
"type": "object",
"properties": {
"outline": {
"description": "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\".",
"type": "string",
"maxLength": 400000
},
"nodes": {
"description": "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}].",
"maxItems": 2000,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "number"
}
],
"description": "Unique id of the node, e.g. \"n1\"."
},
"parent": {
"description": "Id of the parent node; leave out for the root only, e.g. \"n1\".",
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "number"
}
]
},
"label": {
"description": "Short name of the node or of the branch into it, e.g. \"Strong demand\".",
"type": "string",
"maxLength": 400
},
"type": {
"description": "decision, chance or end. Optional: inferred from the branches as in the outline.",
"type": "string",
"maxLength": 20
},
"p": {
"description": "Probability of this branch when the parent is a chance node, e.g. 0.6, \"1/3\" or \"35%\".",
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "number"
}
]
},
"cost": {
"description": "Amount paid on this branch, e.g. 200.",
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "number"
}
]
},
"payoff": {
"description": "Value at an end node, e.g. 1000 or -300.",
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "number"
}
]
}
},
"required": [
"id"
],
"additionalProperties": {}
}
},
"objective": {
"description": "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.",
"type": "string",
"enum": [
"max",
"min"
]
},
"unit": {
"description": "Unit or currency shown with values, up to 12 characters, e.g. \"$\", \"EUR\" or \"hours\".",
"type": "string",
"maxLength": 40
},
"decimals": {
"description": "Decimals shown in the drawing and summary, 0 to 6 (default 2), e.g. 2. The CSV also has the fraction.",
"type": "integer",
"minimum": 0,
"maximum": 6
},
"page_size": {
"description": "PDF page: letter (default) or a4. Landscape unless portrait needs fewer pages.",
"type": "string",
"enum": [
"letter",
"a4"
]
},
"title": {
"description": "Title printed on the drawing and used in file names, up to 80 characters, e.g. \"Product launch\".",
"type": "string",
"maxLength": 400
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}出力スキーマ
{
"type": "object",
"properties": {
"title": {
"type": "string"
},
"objective": {
"type": "string"
},
"unit": {
"type": "string"
},
"decimals": {
"type": "number"
},
"counts": {
"type": "object",
"properties": {
"nodes": {
"type": "number"
},
"decision_nodes": {
"type": "number"
},
"chance_nodes": {
"type": "number"
},
"end_nodes": {
"type": "number"
},
"depth": {
"type": "number"
},
"errors": {
"type": "number"
},
"warnings": {
"type": "number"
}
},
"required": [
"nodes",
"decision_nodes",
"chance_nodes",
"end_nodes",
"depth",
"errors",
"warnings"
],
"additionalProperties": false
},
"root": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"strategy": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"ties": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"risk_profile": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"nodes": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"issues": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"checks": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"pdf": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"rules": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"downloads": {
"type": "object",
"properties": {
"pdf": {
"type": "string"
},
"svg": {
"type": "string"
},
"csv": {
"type": "string"
}
},
"additionalProperties": false
},
"shown": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"title",
"objective",
"unit",
"decimals",
"counts",
"root",
"strategy",
"ties",
"risk_profile",
"nodes",
"issues",
"checks",
"pdf",
"rules",
"warnings",
"downloads"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢check_tree(outline, nodes, objective)
Use this when the user wants a decision tree checked without a drawing, for example "do my probabilities add up to 1" or "is anything missing in this tree". Takes the same outline or node list and objective as make_decision_tree. Returns, for each chance node, the sum of its branch probabilities as a fraction and whether it is 1; end nodes without a payoff; probabilities on decision options; payoffs on nodes that have branches; single-option decisions; duplicate branch names; and the depth and node counts against the limits. When nothing is wrong it also gives the root expected value. Refuses a tree it is unable to read (unknown parent, a loop, two roots, over the limits), naming the line or id. Does not draw the tree or make files. Do not use it to estimate probabilities.
入力スキーマ
{
"type": "object",
"properties": {
"outline": {
"description": "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\".",
"type": "string",
"maxLength": 400000
},
"nodes": {
"description": "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}].",
"maxItems": 2000,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "number"
}
],
"description": "Unique id of the node, e.g. \"n1\"."
},
"parent": {
"description": "Id of the parent node; leave out for the root only, e.g. \"n1\".",
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "number"
}
]
},
"label": {
"description": "Short name of the node or of the branch into it, e.g. \"Strong demand\".",
"type": "string",
"maxLength": 400
},
"type": {
"description": "decision, chance or end. Optional: inferred from the branches as in the outline.",
"type": "string",
"maxLength": 20
},
"p": {
"description": "Probability of this branch when the parent is a chance node, e.g. 0.6, \"1/3\" or \"35%\".",
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "number"
}
]
},
"cost": {
"description": "Amount paid on this branch, e.g. 200.",
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "number"
}
]
},
"payoff": {
"description": "Value at an end node, e.g. 1000 or -300.",
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "number"
}
]
}
},
"required": [
"id"
],
"additionalProperties": {}
}
},
"objective": {
"description": "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.",
"type": "string",
"enum": [
"max",
"min"
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}出力スキーマ
{
"type": "object",
"properties": {
"ready": {
"type": "boolean"
},
"objective": {
"type": "string"
},
"counts": {
"type": "object",
"properties": {
"nodes": {
"type": "number"
},
"decision_nodes": {
"type": "number"
},
"chance_nodes": {
"type": "number"
},
"end_nodes": {
"type": "number"
},
"depth": {
"type": "number"
},
"errors": {
"type": "number"
},
"warnings": {
"type": "number"
}
},
"required": [
"nodes",
"decision_nodes",
"chance_nodes",
"end_nodes",
"depth",
"errors",
"warnings"
],
"additionalProperties": false
},
"chance_nodes": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"issues": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"root": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"limits": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"shown": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"ready",
"objective",
"counts",
"chance_nodes",
"issues",
"limits"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}コミュニティ
エビデンス