Skip to main content
Glama

List Docmost pages

list_pages
Read-only

Browse a Docmost space's page tree by listing root pages or a page's direct children in sidebar order, including whether each has children. Use to navigate the wiki structure.

Instructions

Browses the page tree, listing the top-level pages of a space or the direct children of a page in sidebar order, all at once up to 1000, with whether each has children; to search, filter by label or see recent pages, use find_pages.

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": "list_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
spaceIdNoSpace id from get_workspace; lists the root pages of that space.
parentPageIdNoLists the direct children of this page instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.0
    • changedInput schema / properties / spaceId / description
      Previous value: -"Space id from list_spaces; lists the root pages of that space."New value: +"Space id from get_workspace; lists the root pages of that space."
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, openWorldHint), yet the description adds real behavioral detail: results come back 'all at once up to 1000' (implying a hard cap and no pagination), in sidebar order, and each entry reports whether it has children. What it omits is what happens when more than 1000 pages exist — truncation versus error — which keeps it from a 5.

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?

A single sentence, front-loaded with the verb and the tree-browsing scope, with the alternative deferred to the end — appropriate ordering. It is dense, packing ordering, cap, and child-indicator into one clause, but nothing is wasted or redundant.

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?

With no output schema, the description carries the return-shape burden and does so: ordering, the 1000-item cap, and the has-children flag. Combined with a fully documented two-parameter schema, an agent has enough to call it correctly, though the behavior at the cap boundary remains unstated.

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 both parameters already document their effect, including that parentPageId means children 'instead'. The description reinforces the either/or relationship between the two modes but adds no format, syntax, or constraint detail beyond the schema, so the baseline 3 applies.

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 ('Browses the page tree, listing...') and pins down the two modes precisely: top-level pages of a space or direct children of a page. It names the sibling it is not (find_pages), so an agent can distinguish it 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?

Explicitly routes the agent away from this tool with 'to search, filter by label or see recent pages, use find_pages', naming the alternative and the conditions that select it. This is genuine when/when-not guidance rather than implied usage.

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