Skip to main content
Glama

Thought Tree

Open or resume a work tree

open_tree
Idempotent

Call first on every multi-step task, and again whenever you lost the tree id (e.g. after context compaction): the same ref always returns the same tree. Returns dead paths with reasons, human answers, pending questions and the outline. Creates the tree with goal as root if the ref is new.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "open_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoStable handle for the task, e.g. the issue or PR URL "github.com/acme/app/issues/12". The same ref always reopens the same tree.
goalNoOne line: what this task must achieve. Required when creating a tree.
agentNoWho you are, e.g. "claude-code@a1b2c3" or "subagent:tests".
focusNoOptional node id: return only that node's path and subtree (saves tokens on big trees).
tree_idNoId of a known tree (16 chars). Use instead of ref when you have it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say openWorldHint=false and idempotentHint=true; the description goes well beyond that by disclosing the write-on-new-ref side effect ('creates the tree with goal as root if the ref is new') and the full return payload, which matters since no output schema exists. It correctly reinforces ref-level idempotency and explains practical recovery after context compaction. Nothing conflicts with the annotations, and it discloses mutation behavior the annotations omit.

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?

Two sentences, no filler, and the most important instruction ('call first') is front-loaded. Each clause carries distinct information: trigger, idempotency guarantee, return contents, and creation behavior.

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

Completeness5/5

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

With no output schema, the description takes responsibility for describing the return contents (dead paths, human answers, pending questions, outline), which is exactly what an agent needs. It also covers the create-vs-resume duality that the optional-parameters schema alone leaves ambiguous.

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 coverage is 100%, so ref, goal, agent, focus and tree_id are already documented, giving a baseline of 3. The description adds a little relational meaning by tying goal to the create path ('goal as root if the ref is new'), but it does not explain focus, agent or the ref-versus-tree_id choice beyond what the schema already says.

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 gives a specific verb pair and resource ('open or resume a work tree') and clarifies both modes: reopening an existing tree by ref versus creating a new one with goal as root. It also enumerates what comes back (dead paths with reasons, human answers, pending questions, outline), so an agent knows exactly what capability this is apart from siblings like ask_human or mark.

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

Usage Guidelines4/5

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

It states explicit trigger conditions: 'call first on every multi-step task' and 'again whenever you lost the tree id (e.g. after context compaction)'. That is clear when-to-use guidance for the entry point of a workflow. It does not name sibling alternatives or exclusions, but for a first-call tool that gap is minor.

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