Skip to main content
Glama

List pages

list_pages
Read-onlyIdempotent

Lists every page of a kept site, or of a preview given its draft_id, in one answer with no paging. Each line is a page's address and title, indented by depth, and on a kept site the date it last changed. A kept site lists the top-level pages first, then each deeper level, in alphabetical order of address within a level; a preview lists all its pages in alphabetical order of address. It is how page addresses are found: read_page reads one page in full, find_references finds the pages that state a given fact, and site_status says whether the site is published.

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
siteNoWhich site: its name (like Acme Docs), its Documarium address (like acme.documarium.com) or the short name in that address (like acme); a custom domain is not accepted. Leave it out when this connection covers one site; when it covers several and site is left out, nothing is done and the answer names them. A preview is not one of these sites; draft_id names a preview.
draft_idNoWhich preview: the draft_id create_preview returned, a 43-character key of letters, digits, - and _ (stray quotes or punctuation around it are ignored). It is not the code in the preview's link. Leave it out for a kept site, which site names.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / draft_id / description
      Previous value: -"Which preview this is about: the draft_id create_preview returned, not the code in the preview's link. Leave it out for a kept site, which site names."New value: +"Which preview: the draft_id create_preview returned, a 43-character key of letters, digits, - and _ (stray quotes or punctuation around it are ignored). It is not the code in the preview's link. Leave it out for a kept site, which site names."
    • changedInput schema / properties / site / description
      Previous value: -"Which site: its name, its Documarium address (like acme.documarium.com) or the short name in that address (like acme); a custom domain is not accepted here. Leave it out when this connection covers only one site. A preview is not one of these sites; draft_id names a preview."New value: +"Which site: its name (like Acme Docs), its Documarium address (like acme.documarium.com) or the short name in that address (like acme); a custom domain is not accepted. Leave it out when this connection covers one site; when it covers several and site is left out, nothing is done and the answer names them. A preview is not one of these sites; draft_id names a preview."
  2. Changed2 schema fields changed
    • changedInput schema / properties / draft_id / description
      Previous value: -"Which preview this is about: the draft_id create_preview gave, not the code in the preview's link. Leave it out for a site you keep."New value: +"Which preview this is about: the draft_id create_preview returned, not the code in the preview's link. Leave it out for a kept site, which site names."
    • changedInput schema / properties / site / description
      Previous value: -"Which site: its name or its address. Leave it out if this connection only covers one."New value: +"Which site: its name, its Documarium address (like acme.documarium.com) or the short name in that address (like acme); a custom domain is not accepted here. Leave it out when this connection covers only one site. A preview is not one of these sites; draft_id names a preview."
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world, but the description goes well beyond them: no paging, the exact line format (address, title, depth indentation, last-changed date on kept sites), and the two different ordering rules. It stops short of stating size limits or behavior on very large sites, which is the only real 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?

The output shape and the no-paging guarantee are front-loaded, then ordering rules, then the sibling routing sentence. Every clause carries distinct information and there is no filler.

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, so the description must describe return values, and it does precisely: one line per page with address and title, depth indentation, and last-changed date on kept sites. Combined with full parameter documentation, an agent has everything needed to call and interpret it.

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 are already documented in detail, including the site-vs-draft_id mutual exclusion. The description only reinforces the split (kept site vs preview) and adds nothing about address formats or fallbacks beyond what the schema states, so the baseline 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?

"Lists every page of a kept site, or of a preview given its draft_id" names a specific verb and resource and immediately bounds the two input modes. It also explicitly positions itself against read_page, find_references and site_status, so an agent can pick it without opening 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 Guidelines5/5

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

The closing sentence states outright that "It is how page addresses are found" and then distinguishes read_page (one page in full), find_references (pages stating a fact) and site_status (published or not). That is explicit when-to-use plus named alternatives, with no reliance on 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.