Skip to main content
Glama

get_page_tree

Read-only

Read a space’s page hierarchy as a recursive tree in one call, with depth and node limits to bound results and indicate truncation.

Instructions

Read the page hierarchy of a space in one call (recursive sidebar tree). max_depth and max_nodes bound the result; truncated=true when a bound stops the walk. Each level reads at most 100 sibling pages.

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": {
      "space_id": "<space_id>"
    },
    "name": "get_page_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_idNoStart at this page instead of space root
verboseNoFull metadata
space_idYesUUID or slug
max_depthNoMax nesting depth (default 5)
max_nodesNoMax pages to include (default 200)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the readOnlyHint annotation, the description discloses real behavioral traits: the walk is recursive, results are bounded by max_depth and max_nodes, a truncation signal (truncated=true) is returned when a bound cuts the walk, and each level reads at most 100 siblings. The per-level sibling cap is a useful hidden limit not available anywhere else. It stops short of describing ordering or total-size expectations.

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?

Three tight sentences, front-loaded with the capability, then the bounding parameters, then the truncation contract. Every sentence carries distinct information with no restatement of the name or title.

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?

There is no output schema, and the description compensates by explaining the one return signal that matters (truncated=true) plus the per-level sibling cap. Combined with a fully described five-parameter schema and a readOnly annotation, an agent has everything needed to call and interpret this tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds the interaction semantics the schema lacks: the two bound parameters jointly determine whether the response is truncated, which an agent cannot infer from the per-parameter descriptions. It still leaves page_id (start-at-subtree) and verbose unmentioned in prose, relying on the schema.

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: 'Read the page hierarchy of a space', qualified by 'in one call (recursive sidebar tree)', which tells the agent this is a bulk/tree read rather than a single-page read like get_page. It does not name a sibling alternative explicitly, so it falls short of full differentiation.

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 phrase 'in one call' implies this should be preferred over repeatedly calling a single-page tool, but the guidance is only implied. There is no explicit statement of when not to use it (e.g. for a single known page or when only backlinks/breadcrumbs are needed), and no named alternative.

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