Skip to main content
Glama

Get doc tree

get_doc_tree
Read-onlyIdempotent

Get a space's doc hierarchy as nested pages in the order shown in the app, down to depth levels (1 to 5, default 3). truncated is true when the 500-node limit or a 500-row child scan prevents a complete result. hasChildren is also true when a capped scan leaves child presence unknown.

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": {
      "spaceId": "<spaceId>"
    },
    "name": "get_doc_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoLevels to return, 1 to 5. Default 3.
spaceIdYesDocs space ID or slug.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (read-only, idempotent, non-destructive, closed-world), so the description's real contribution is the truncation contract: a 500-node cap and a 500-row child scan, plus the caveat that hasChildren can be true merely because a capped scan left presence unknown. That is genuinely non-obvious behavior an agent must account for, though the structure of a returned page node itself is left unstated.

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?

Three tight sentences with no filler, front-loaded with the primary capability before the edge-case details. The truncation sentences are dense but each carries a distinct fact (node cap, scan cap, hasChildren ambiguity).

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

Completeness3/5

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

For a tool with no output schema, the description must carry the return-value burden. It explains the truncation flags well but never describes the shape of a returned node (identifiers, titles, the children array holding the nesting), leaving the agent to infer the payload structure.

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% and both parameters are documented there; the description only restates the depth range and default rather than adding new meaning, so the baseline of 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?

States a specific verb and resource: get a space's doc hierarchy as nested pages, in app display order, down to a depth limit. That functional framing (nested tree vs. the flat list_doc_children-style siblings) lets an agent pick correctly without opening the schema, though it never names an alternative outright.

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?

Usage is implied rather than stated: 'in the order shown in the app' and 'nested pages' signal when this is the right choice versus a flat listing. There are no explicit when-not conditions, prerequisites, or named alternatives.

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