Skip to main content
Glama
HefnySco

Tree of Thoughts MCP Server

by HefnySco

generate_and_evaluate_children

Generate branching thoughts and evaluate them with an LLM judge in a single call to advance tree-based reasoning and decision exploration.

Instructions

Generate child thoughts and evaluate them in one call using LLM judge

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
treeIdYesThe ID of the tree
metadataNoOptional metadata for the thoughts
parentIdYesThe ID of the parent thought
numChildrenYesNumber of children to generate (default: 3)
useLLMJudgeNoUse LLM as judge for evaluation (requires LLM provider)
defaultScoreNoDefault score if LLM judge is not used (default: 50)
diversityPromptNoOptional prompt to encourage diverse thought generation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.5

TDQS

B3.4/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, but it only mentions the generate-and-evaluate action. It does not disclose whether the tree is mutated, what is returned, or the state change semantics, and it overstates LLM judge usage even though useLLMJudge is optional in the schema.

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 a single concise sentence with no filler. It front-loads the core operation and the key distinguishing feature, 'in one call', making it easy to scan.

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 seven-parameter tool with no output schema and no annotations, this one-sentence description is insufficient. An agent cannot infer the return value, side effects on the tree, default evaluation behavior when useLLMJudge is false, or how metadata and diversityPrompt influence the operation.

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?

Schema description coverage is 100%, so the baseline for parameter semantics is met. The tool description adds little beyond the schema except the 'LLM judge' hint, which is somewhat misleading because useLLMJudge is optional and defaultScore can be used instead.

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 clearly states a specific combined operation: generate child thoughts and evaluate them. The phrase 'in one call' distinguishes this tool from sibling tools like generate_children and evaluate_thought without requiring the agent 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 this tool is the combined alternative to generate_children and evaluate_thought, but it never explicitly says when to use it versus those separate tools. It also does not clarify when to set useLLMJudge versus relying on defaultScore, so usage guidance is mostly inferred.

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