Skip to main content
Glama

Thought Tree

Add an approach or sub-step

branch

Add a child under parent (default root) before you try it. If its wording mostly overlaps a dead path anywhere in the tree, it is not added and you get that path's reason; rephrase if it is genuinely different, or pass retry_because with what changed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tree_id": "<tree_id>",
      "text": "<text>"
    },
    "name": "branch"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesOne line: the approach or step.
agentNoWho you are.
parentNoNode id this branch serves. Default "root".
tree_idYesTree id from open_tree.
retry_becauseNoOnly when retrying a dead path: what changed since it died.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations establish that this is a non-read-only, non-idempotent operation, but the description adds important behavior: it checks for wording overlap with dead paths, rejects the addition, returns the prior reason, and supports retry_because. That is meaningful context beyond the annotations, though it does not describe the successful return value or broader side effects.

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 definition is brief and front-loads the core action, then follows with the dead-path rejection rule. The second sentence is dense, and the ambiguous "before you try it" phrase slightly reduces clarity, but there is no redundant wording.

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?

For a five-parameter mutation tool without an output schema, the description covers the critical edge case of dead-path collisions and explains how to retry. It could do slightly more to characterize the success path or required permissions, but the essential guidance is present.

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 all five parameters are already documented in the schema. The description reinforces parent-default-root and retry_because semantics, but adds little parameter-level detail beyond what the schema provides.

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 states a specific verb and resource: adding a child branch under a parent, with root as the default. This is clear enough to distinguish it from tree-opening and marking siblings, though the phrase "before you try it" is vague and does not directly clarify the tool's role.

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 that this should be used before trying an approach and gives conditional guidance for dead-path retries. However, it does not explicitly compare this tool with alternatives such as attach or mark, nor does it state the broader when-to-use conditions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources