Skip to main content
Glama
Document Reader MCP Server

Document Reader MCP Server

by abdo544445

read_full_document

Read an entire document at once for small files under 5 pages or chunks; use page-reading or search tools for larger documents to preserve context.

Instructions

Read the ENTIRE content of a document at once. WARNING: Only use this for small documents (< 5 pages/chunks). For large documents, prefer read_document_page or search_document to preserve context.

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>"
    },
    "name": "read_full_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYesAbsolute path to the file
passwordNoOptional password for encrypted/protected PDF files
maxChunksNoMaximum number of pages/chunks to read (default: 10, max: 50)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden, and it does disclose the most consequential behavior: this call consumes a large amount of context, which is why the size threshold exists. It stops short of explaining truncation or what happens when the document exceeds maxChunks, so it is not fully transparent but is well above the bar for an unannotated tool.

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?

Two sentences, no filler, and the risk/warning is placed after the capability statement but before the alternative routing. Every clause earns its place.

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 three-parameter read tool with no output schema and no annotations, the definition covers purpose, risk, and alternative routing adequately. The remaining gap is behavioral: whether the read truncates at maxChunks and what the caller receives in that case, given the description promises "ENTIRE content."

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 description coverage is 100%, so filePath, password, and maxChunks are already documented in structured form; the description adds essentially nothing per-parameter. It never clarifies the tension between "ENTIRE content" and the default maxChunks of 10, which is the one piece of semantics only the description could supply.

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?

The description opens with a specific verb and resource plus an explicit scope qualifier: "Read the ENTIRE content of a document at once." It also names the siblings it is not (read_document_page, search_document), so an agent can distinguish this wholesale read from the paged and search variants without opening any schema.

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?

It states a concrete selection rule with a threshold (< 5 pages/chunks) and names the two preferred alternatives for the excluded case, with a stated reason (preserving context). This is explicit when-to-use and when-not-to-use guidance rather than implied usage.

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