Skip to main content
Glama
pdf2mcp

pdf2mcp

by iSamBa

read_page

Retrieves the complete text content of a chosen PDF page, grouped by section, so you can inspect that page after locating it in search results or a table of contents.

Instructions

Read the full content of a specific page from a document.

Use this when you know which page you need — e.g., after seeing a page
reference in a search result or table of contents. Returns all text chunks
from that page in document order, grouped by section.

Get valid filenames from list_docs.

Args:
    filename: The PDF filename (e.g., 'manual.pdf').
    page: The page number to read (1-indexed).

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": {
      "filename": "<filename>",
      "page": "<page>"
    },
    "name": "read_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageYes
filenameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose that it returns all text chunks in document order grouped by section, plus the 1-indexed page convention. It does not cover behavior on out-of-range page numbers or invalid filenames, which is the main remaining 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 purpose is front-loaded, the usage guidance follows, and the Args block is compact. Every sentence carries information an agent needs, 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 two-parameter read tool with an output schema, the description covers selection criteria, prerequisites, and return ordering. Only error/edge-case behavior is absent, which is acceptable given the output schema handles return structure.

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 0%, so the description must compensate, and it does: filename is identified as a PDF filename with an example, and page is explicitly 1-indexed. That resolves the most ambiguous semantic detail (zero- vs one-based indexing) that the bare integer schema cannot.

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 ('Read the full content of a specific page from a document'), which separates it from search-style siblings. It does not explicitly name read_section or clarify the page-vs-section boundary, so an agent must infer that distinction.

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?

'Use this when you know which page you need — e.g., after seeing a page reference in a search result or table of contents' gives concrete selection context, and 'Get valid filenames from list_docs' supplies the prerequisite. No explicit statement of when to prefer read_section instead.

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