Skip to main content
Glama
Document Reader MCP Server

Document Reader MCP Server

by abdo544445

read_document_page

Extract a specific page, chunk, or Excel sheet from PDF, Word, PowerPoint, or CSV files to read document content in manageable, context-efficient portions.

Instructions

Read a specific page, chunk, or sheet from a document. For PDF: provide the page number (e.g. '1'). For Word/PPT/CSV: provide the chunk number (e.g. '1'). For Excel: provide the exact sheet name (e.g. 'Sheet1'). Use get_document_info first to know valid ranges.

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": {
      "filePath": "<filePath>",
      "pageOrSheet": "<pageOrSheet>"
    },
    "name": "read_document_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYesAbsolute path to the file
passwordNoOptional password for encrypted/protected PDF files
pageOrSheetYesPage/chunk number (1-indexed) for PDF/Word/PPT/CSV, OR the sheet name for Excel

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the addressing model per file type and that encrypted PDFs are supported, but says nothing about what happens on an out-of-range page, whether errors or empty results are returned, or the shape of the returned content.

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?

Front-loads the core action, then one short sentence per file-type case, then the prerequisite. No filler, no repetition, and the ordering matches how an agent would reason about the call.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter read tool with no annotations and no output schema, the description covers addressing and prerequisites but leaves the return shape and failure behavior unspecified. Adequate to invoke correctly, incomplete about what comes back.

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 coverage is 100%, and the schema already states the page/chunk-vs-sheet distinction and 1-indexing, so the description largely restates it. The concrete examples ('1', 'Sheet1') add minor interpretive value, which is consistent with the baseline 3 when the schema does the heavy lifting.

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?

States a specific verb and resource with explicit scope: 'Read a specific page, chunk, or sheet' rather than the whole document, which implicitly separates it from read_full_document and search_document. The per-format breakdown makes the tool's unit of retrieval unambiguous.

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?

Gives a clear prerequisite: 'Use get_document_info first to know valid ranges,' which tells the agent when to call this tool and what must precede it. It stops short of naming when not to use it (e.g., defer to read_full_document for whole-file reads), so it lacks explicit exclusions.

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