Skip to main content
Glama

get_page_content

Extracts content from targeted pages of a processed document, letting you retrieve only relevant sections instead of the whole file.

Instructions

Extract page content from a processed document. Use tight, targeted page ranges — never the whole document at once. For documents over 20 pages, call get_document_structure() first to pick relevant sections. Embedded image paths in the response feed into get_document_image().

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": {
      "doc_name": "<doc_name>",
      "pages": "<pages>"
    },
    "name": "get_page_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesYesPage specification: "5", "3,7,10", "5-10", or "1-3,7,9-12"
doc_nameYesCopy the `name` field verbatim from a browse_documents() or search_documents() response (case-sensitive, include extension). Example: "Q3 Report.pdf". If the response shows two documents with the same name, pass `folder_id` alongside to disambiguate.
folder_idNoDisambiguator for same-name documents. Copy the `folder_id` from the intended browse/search result; use "root" for root-level documents, or "shared-with-me"/"following" for the read-only folders at the library root; omit if `doc_name` is unique. Copy any folder_id verbatim from a browse_documents()/get_folder_structure() response, never construct one.
wait_for_completionNoIf true and document is processing, automatically wait up to 3 minutes until completed. Reduces repeated tool calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.9.0
    • addedInput schema / properties / folder_id / description
      Added value: +"Disambiguator for same-name documents. Copy the `folder_id` from the intended browse/search result; use \"root\" for root-level documents, or \"shared-with-me\"/\"following\" for the read-only folders at the library root; omit if `doc_name` is unique. Copy any folder_id verbatim from a browse_documents()/get_folder_structure() response, never construct one."
    • addedInput schema / properties / folder_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv1.8.2

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose that the document must be "processed" and that responses contain embedded image paths, but says nothing about what happens when a document is unprocessed, size/truncation limits, or error behavior.

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?

Four short sentences, front-loaded with the action and immediately followed by the constraint and the pivot to get_document_structure. Every sentence carries an actionable instruction with no filler.

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 4-parameter, no-output-schema read tool with no annotations, this covers the essentials: source precondition, range strategy, preconditioning on large docs, and downstream tool linkage. Failure modes and response shape beyond image paths remain unspecified.

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 schema handles field-level documentation. The description still adds real meaning for the `pages` parameter by prescribing tight ranges rather than whole-document pulls, and it implies the processing precondition on `doc_name`. The other parameters (folder_id, wait_for_completion) are left entirely to the schema.

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 ("Extract page content from a processed document") and implicitly scopes to per-page retrieval, distinguishing it from whole-document siblings like get_document. It does not explicitly contrast with get_document, so the sibling differentiation is partial rather than complete.

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?

Gives explicit usage policy — use tight, targeted page ranges, never the whole document — plus a concrete decision rule: for documents over 20 pages, call get_document_structure() first. It also routes the response's image paths into get_document_image(), naming the natural follow-up.

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