Skip to main content
Glama

get_page

Read-only

Retrieve a Docmost wiki page's metadata and Markdown body; optionally list headings, return one section, or page long content by character limit and offset.

Instructions

Get page metadata and Markdown body (format=json for ProseMirror). To read less: outline=true lists headings, heading returns one section, max_chars+offset page the body (follow next_offset).

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

Input Schema

NameRequiredDescriptionDefault
formatNoDefault markdown
offsetNoStart position
headingNoOne section as Markdown. Text, or '## Text' to pin the level
outlineNoHeadings only
page_idYesUUID or slugId
max_charsNoMax characters to return

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.2.1
    • addedInput schema / properties / max_chars / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
  2. Changed6 schema fields changedv1.1.0
    • changedInput schema / properties / format / description
      Previous value: -"Content format. Default markdown"New value: +"Default markdown"
    • addedInput schema / properties / heading
      Added value: +{
      +  "description": "One section as Markdown. Text, or '## Text' to pin the level",
      +  "type": "string"
      +}
    • addedInput schema / properties / max_chars
      Added value: +{
      +  "description": "Max characters to return",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Start position",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / outline
      Added value: +{
      +  "description": "Headings only",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / page_id / description
      Previous value: -"Page UUID or slugId"New value: +"UUID or slugId"
  3. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds real behavioral detail beyond that — the body is returned as Markdown by default, format=json yields ProseMirror, and paginated reads must follow next_offset. That next_offset behavior is especially valuable given there is no output schema. No mention of permissions or size limits, 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?

Two densely packed sentences with no filler and the primary function front-loaded. The telegraphic style ('max_chars+offset page the body') costs a little readability, but nothing is wasted.

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 six parameters, an enum, and no output schema, the description carries the return-shape burden well by naming metadata, Markdown body, headings, and next_offset. It stops short of stating exactly what the metadata object contains, but an agent has enough to call it correctly.

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

Parameters5/5

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

Schema coverage is 100%, so baseline is 3, but the description actively adds meaning the schema does not: format=json maps to ProseMirror, heading accepts '## Text' to pin a level, and max_chars/offset combine for body paging with next_offset as the continuation signal. This explains the interplay between parameters, not just their individual labels.

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: 'Get page metadata and Markdown body', with the ProseMirror variant flagged via format=json. It is clearly distinguishable from mutating siblings like edit_page/delete_page, though it never names a read-side sibling such as get_page_history to draw a boundary.

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 'To read less' clause gives conditional guidance on choosing a lighter read mode (outline, heading, max_chars+offset), which is genuinely useful. However, it offers no guidance on when to pick this tool over sibling reads like get_page_history or get_space, and no exclusions.

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