Skip to main content
Glama
HefnySco

Tree of Thoughts MCP Server

by HefnySco

clear_tree

Deletes a reasoning tree by its ID, removing stored decision paths and freeing workspace in the Tree of Thoughts server.

Instructions

Clear a specific tree by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
treeIdYesThe ID of the tree to clear

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.5

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. 'Clear' implies a mutation, but the description does not state whether the tree structure is preserved, whether descendants are affected, or whether the operation is reversible.

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 that front-loads the action and object. It contains no filler, though its brevity contributes to the lack of contextual detail penalized elsewhere.

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

Completeness2/5

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

For a mutation tool with no annotations and no output schema, this description is incomplete. An agent cannot determine the difference between clearing and deleting a tree, what happens to child nodes, or whether the operation affects session or strategy context.

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 already documents treeId with the description 'The ID of the tree to clear,' and schema coverage is 100%. The description's 'by ID' is redundant, and no additional parameter meaning is provided. Baseline 3 applies.

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 uses a specific verb ('Clear') and resource ('a specific tree'), and it identifies the tree by ID. However, it does not distinguish 'clear' from sibling operations like delete_tree, and the meaning of 'clear' remains ambiguous.

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?

No guidance is provided on when to use this tool versus alternatives such as delete_tree, prune_tree, or clear_strategy. There are no conditions, exclusions, or references to other tools, leaving the agent to infer the appropriate context.

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