Skip to main content
Glama
HefnySco

Tree of Thoughts MCP Server

by HefnySco

get_tree_structure

Retrieve the complete hierarchical layout of a decision tree to inspect its nodes, branches, and reasoning paths.

Instructions

Get the hierarchical structure of a tree

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
treeIdYesThe ID of the tree

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.5

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the behavioral burden. It does convey that this is a read operation returning hierarchy, but it leaves unclear details such as whether the entire nested tree is returned, whether ordering is stable, or what happens for missing tree IDs.

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?

The description is a single efficient sentence with no redundancy. It is concise and easy to parse, though it is brief enough that it does not earn the top score for structural richness.

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

Completeness3/5

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

For a tool with one required parameter and a simple read operation, the description is minimally adequate. However, with no output schema and many closely related sibling tools, it does not clarify what shape the hierarchical structure takes or when this tool is preferable to get_tree.

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?

The input schema has 100% coverage for the single parameter treeId, so the baseline is 3. The description adds no additional parameter-level meaning beyond what the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the action (get) and the target resource (hierarchical structure of a tree). However, it does not distinguish this from sibling tools like get_tree, get_tree_stats, or visualize_tree, so an agent must infer the difference.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives such as get_tree or list_trees. With many sibling tools operating on trees, the lack of explicit usage context forces the agent to guess.

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