Skip to main content
Glama

get_subtree

Read-onlyIdempotent

Return a task and all its descendants up to a given depth. Use this when you have a root task id and want parent + children + grandchildren in one call. PREFER get_plan when you need the whole project tree; PREFER list_tasks(parentId) when you want exactly one level. Caps: maxDepth ≤ 5 (default 3), total nodes ≤ 200. Each node carries title / description / status / priority / progress / dueDate / assignee / collaborators / isMilestone / updateRevision (+ agentBrief when includeAgentBrief=true). The response also returns totalDescendants (the full count under the root, ignoring the caps) so you can tell when the tree was truncated.

Input Schema

NameRequiredDescriptionDefault
maxDepthNoDefault 3, max 5. Root is depth=0.
rootTaskIdYesThe root task whose subtree you want.
includeAgentBriefNoDefault false. Include agentBrief on each node.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations cover the safety profile (read-only, idempotent, non-destructive), and the description still adds substantial behavioral context: depth and node caps, the truncation signal via totalDescendants, the exact node fields returned, and the agentBrief toggle. This is well beyond what the annotations provide.

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?

Front-loads purpose, then routing alternatives, then caps and return shape. The field enumeration is dense but directly tells the agent what it receives, so every sentence earns its place.

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?

For a hierarchy-fetch tool with no output schema, the description covers purpose, alternatives, caps, truncation detection, and returned fields, which is everything needed to call it correctly and interpret the result.

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% and the schema already documents default=3, max=5, root depth=0, and includeAgentBrief behavior. The description mostly repeats those defaults, adding only the global 200-node cap and a restatement of agentBrief, so baseline 3 is appropriate.

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?

States a specific verb and resource ('Return a task and all its descendants up to a given depth') and explicitly distinguishes itself from siblings by name (get_plan for the full tree, list_tasks for one level). An agent can select it correctly without opening any schema.

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

Usage Guidelines5/5

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

Gives an explicit use case ('when you have a root task id and want parent + children + grandchildren in one call') and names the two alternative tools with the exact conditions that select them. No routing decision is left to inference.

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.