Skip to main content
Glama

Get the page tree of a space

get_page_tree
Read-only

Retrieve a space's live page tree as an indented list of titles and page IDs in sidebar order, optionally limited to a root page's subtree, to find IDs for get_page.

Instructions

The live page tree of a space as an indented list of "title (page id)", in sidebar order. Pass root_page_id to see only one subtree. Use the ids with get_page.

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_key": "<space_key>"
    },
    "name": "get_page_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
space_keyYesSpace key, e.g. ENG (uppercase letters and digits; see list_spaces).
root_page_idNoShow only this page and its descendants.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the description's value-add is the "live" freshness signal and the ordering guarantee (sidebar order), both of which affect how an agent should interpret results. It does not say whether very large spaces are truncated or how big a response can get, which is the one behavioral gap.

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 short sentences, front-loaded with what is returned and in what format, then the optional narrowing, then the follow-up call. Every sentence carries information and none is padding.

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 read-only two-parameter listing with no output schema, the description supplies the crucial return-shape detail (indented title-plus-id list) that the schema cannot. Only size/truncation behavior for large spaces is left unstated, which is minor for this complexity.

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 already carry format hints, including the space-key example and the UUID pattern. The description only restates that root_page_id narrows to a subtree, which the schema already says almost verbatim, so it adds little beyond the baseline.

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 resource and scope ("the live page tree of a space") and pins down the exact output shape: an indented list of "title (page id)" in sidebar order. The closing "Use the ids with get_page" separates it from the single-page sibling without needing the schema.

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?

Explains the optional parameter's effect ("Pass root_page_id to see only one subtree") and names the natural next tool (get_page) with its purpose. It lacks an explicit when-not case, e.g. for locating a page by text, where search_pages would be preferred over walking the tree.

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