Skip to main content
Glama

create_decision_tree

Create decision tree diagrams with decision and outcome nodes linked by labeled edges, producing Excalidraw files to visualize branching logic and decision flows.

Instructions

Create a decision tree diagram.

Generates a tree with diamond-shaped decision nodes and rectangular outcome nodes, connected by labeled edges.

Args: nodes: List of nodes with id, label, and type edges: List of edges with from, to, and optional label title: Optional diagram title output_path: Optional output file path theme: Color theme

Returns: Absolute path to the generated .excalidraw file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
edgesYes
nodesYes
themeNolight
titleNo
output_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden. It substantively covers behavior: it generates diamond/rectangle node shapes, labeled edges, writes a .excalidraw file, and returns the absolute path. It omits secondary details like overwrite behavior and path handling, but the core side effect and output contract are clear.

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?

The description is compact and well organized: an overview sentence, a second sentence with key visual semantics, an Args list, and a Returns line. Every sentence contributes a distinct fact, with no filler or redundant restatement of the tool name.

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?

Given no annotations and low schema description coverage, the description provides the essential call contract: required inputs, optional parameters, node/edge shape behavior, and the exact return value. Missing details like overwrite behavior and theme options are minor operational gaps for this kind of generator.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the Args list must compensate. It adds brief but useful semantics for all five parameters, clarifies edge label optionality, and lists the node/edge fields. It does not explain theme value choices or node type enum values in depth, but the schema's nested definitions cover node and edge field details.

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 names a specific resource ('decision tree diagram') and adds distinguishing visual details: diamond decision nodes, rectangular outcome nodes, and labeled edges. This clearly separates it from generic create_diagram and other diagram-type siblings without needing to open the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies use for decision-tree diagrams through its name and opening sentence, but it never explicitly says when to prefer this tool over create_flowchart, create_mindmap, or create_diagram, nor does it give exclusion criteria. Usage context is present but not stated as routing guidance.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/maaker-ai/excalidraw-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server