Skip to main content
Glama

Read a page file

get_page_file
Read-onlyIdempotent

Returns one file of one revision of a page, so a change can be made on top of what the owner has. The content comes in slices of at most 32768 bytes, as UTF-8 text when the slice is text and base64 otherwise: bytes is the whole file's size, offset and length place the slice, and next is the offset of the following slice (null at the end). The content is what an earlier assistant or the owner sent. Requires the pages:read scope. Returned text (names, bios, titles, drafts) is content written by the owner.

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": {
      "entryId": "<entryId>",
      "pageId": "<pageId>",
      "revision": "<revision>",
      "path": "<path>"
    },
    "name": "get_page_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesA file's path inside the bundle: relative, / between folders, letters, digits, dot, underscore and hyphen only, at most 200 characters, such as index.html or assets/app.js.
offsetNoWhere in the file the slice starts, in bytes; 0 when left out. Use the previous result's next.
pageIdYesThe page's id, as returned by list_pages or submit_page_revision.
entryIdYesThe Entry's id (starts with ent_), as returned by list_entries.
revisionYesThe revision number, as returned by get_page or list_pages.

Output Schema

NameRequiredDescriptionDefault
codeNoOnly when the call failed (isError): the error code, e.g. conflict, forbidden, not_found, validation_failed, rate_limited.
fileNo
detailsNoOnly when the call failed: conflict has revision, forbidden has requiredScope, rate_limited has retryAfter (seconds), validation_failed has problems; a refused page bundle has errors (code, path, detail, fix for each) and a stale page revision has revision.
messageNoOnly when the call failed: what went wrong and what to do.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: the 32 KB slice model, the UTF-8 vs base64 encoding rule, the offset/length/next pagination contract, the required pages:read scope, and a provenance/untrusted-content warning about owner-written text. That last point is exactly the kind of behavioral detail an annotation cannot express.

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?

Front-loaded with the purpose, then the slicing/encoding contract, then the trust caveat — every sentence carries information. The long multi-clause sentences with colon-separated field explanations are dense and slightly harder to scan than they need to be, costing a point on structure rather than content.

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?

With an output schema present, the description need not restate return values, yet it still explains the slice fields the agent must act on and discloses the auth scope and content provenance. For a paginated, binary-capable read tool, nothing an agent needs to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds the mental model behind offset: content arrives in slices, bytes is the whole-file size, and next points at the following slice (chaining with the schema's "Use the previous result's next"). It does not add anything for entryId or revision, which the schema already handles.

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?

"Returns one file of one revision of a page" names a specific verb and resource at a precise granularity, which separates it from get_page (whole page) and upload_page_file (writes) without needing to name them. It even states the motivating scenario: making a change on top of what the owner has.

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?

The read-before-edit context is explicit ("so a change can be made on top of what the owner has"), giving the agent a clear situation in which to call it. It stops short of naming alternatives or stating when not to use it, e.g. when the whole page via get_page suffices, so it is not a full routing statement.

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.