Skip to main content
Glama
mcp-docs-reader

mcp-docs-reader

by aranshayan

Read PDF

read_pdf
Read-onlyIdempotent

Extract text from PDFs page by page for reading, search, or processing; specify pages and max characters. Scanned image-only PDFs return empty pages because they lack a text layer.

Instructions

Extract text from a PDF, page by page. Scanned (image-only) PDFs have no text layer and return empty pages.

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": {
      "path": "<path>"
    },
    "name": "read_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
pagesNoPages, e.g. "1-3,5". Default: first 20.
max_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description earns credit for disclosing a real failure mode beyond annotations: no text layer means empty pages. It does not address encrypted/corrupt files, truncation via max_chars, or the shape of the returned text.

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 short sentences, front-loaded with the core action, followed immediately by the one caveat that changes agent behavior. No filler.

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?

Adequate for a simple read tool with annotations covering safety and no output schema. Gaps remain around return structure (per-page vs concatenated text), what happens when max_chars is hit, and path conventions, none of which are resolved by schema or description.

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 only 33%: pages has an example and default, path is self-evident, but max_chars is documented only by type and bounds with no explanation of what it truncates. "Page by page" reinforces the pages parameter, but the description does not compensate for the unexplained character cap.

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 text from a PDF") with the granularity of extraction ("page by page"). The format is intrinsic to the name, so it separates naturally from read_docx/read_spreadsheet/read_text, though no sibling is named or contrasted.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use versus alternatives guidance. The one useful usage caveat is implicit but real: scanned image-only PDFs return empty pages, telling the agent this tool is the wrong choice for such files. Routing between read_pdf and read_text/read_docx must be inferred from file type.

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