Skip to main content
Glama

Read a Docmost page

get_page
Read-only

Retrieves a Docmost page or saved revision as Markdown with pagination, heading sections, or an outline, so you can read exact content without loading the entire page.

Instructions

Returns a window of a page, or of one saved revision of it, as Markdown along with its id, URL, labels, path from the space root and line counts, or just one heading's section, or only the headings with their line numbers.

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": {
      "pageId": "<pageId>"
    },
    "name": "get_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of lines to return; defaults to 500.
offsetNoFirst line to return, starting at 1; defaults to 1, or to the section heading.
pageIdYesPage id, slug id, or the full page URL copied from the browser.
outlineNoReturn only the headings, with their levels and line numbers, instead of the body.
sectionNoHeading text, ignoring case; returns from that heading to the next heading of the same or a higher level.
historyIdNoRevision id from list_page_history; reads that saved revision instead of the page's current body.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.0
    • addedInput schema / properties / historyId
      Added value: +{
      +  "description": "Revision id from list_page_history; reads that saved revision instead of the page's current body.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed4 schema fields changedv0.7.0
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Number of lines to return; defaults to 500.",
      +  "maximum": 2000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "First line to return, starting at 1; defaults to 1, or to the section heading.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / outline
      Added value: +{
      +  "description": "Return only the headings, with their levels and line numbers, instead of the body.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / section
      Added value: +{
      +  "description": "Heading text, ignoring case; returns from that heading to the next heading of the same or a higher level.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes beyond them by disclosing the exact return shape (Markdown plus metadata) and the fact that output is windowed and can be narrowed to a heading section or an outline. It doesn't cover failure behavior for a missing page or how historyId interacts with offset, but it is well above the annotation baseline.

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?

Everything is packed into a single front-loaded sentence with no filler, and the primary behavior leads. The trailing chain of 'or…' clauses makes it a run-on that takes a second pass to parse, which keeps it from a 5.

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 six-parameter read tool with no output schema, the description carries the important burden of describing what comes back (Markdown plus id, URL, labels, path, line counts) and the windowing semantics. Combined with full schema coverage and readOnly annotations, an agent has enough to call it correctly; only error/edge behavior is 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 description coverage is 100%, so limit, offset, section, outline and historyId are already fully documented in the schema, including defaults. The description echoes those modes ('just one heading's section', 'only the headings with their line numbers') without adding syntax or format 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a concrete verb and resource ('Returns a window of a page, or of one saved revision of it') and enumerates the returned payload (id, URL, labels, path from space root, line counts). It clearly distinguishes reading a page body from siblings like list_page_history or replace_page_text, though it never names an alternative explicitly.

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: the reader can infer that historyId reads a past revision and that section/outline are alternative views, but there is no explicit 'use this when…' or 'use X instead' guidance. No exclusions or prerequisites are given.

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