Skip to main content
Glama
mcp-local-reference

mcp-local-reference

read_local_pdf

Extract text from local PDF files outside Zotero, including specific page ranges, by providing a file path and optional start and end pages.

Instructions

Extract text from any PDF file on the local machine.

    Use this for PDFs that are NOT managed by Zotero — e.g. files in
    ~/Documents, ~/Downloads, or any other folder.  If LOCAL_PDF_DIR is
    set, relative filenames are resolved against that directory.

    Args:
        file_path: Path to the PDF (absolute, ~-relative, or relative to LOCAL_PDF_DIR).
        start_page: First page to extract (0-indexed, default: first page).
        end_page: Last page to extract (exclusive, default: last page).
    

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": {
      "file_path": "<file_path>"
    },
    "name": "read_local_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_pageNo
file_pathYes
start_pageNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 disclosure burden. It covers path resolution semantics, but says nothing about limits such as scanned/image-only PDFs, very large files, out-of-range page requests, or error behavior. Read-only nature is evident from "Extract" but not stated explicitly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The summary line is front-loaded and the usage constraint follows immediately. The docstring-style Args block is slightly verbose in formatting but every entry adds information not present in the schema, so little is wasted.

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?

An output schema exists, so return values need not be explained, and the parameter block covers the argument surface well. What is missing is edge-case behavior (scanned PDFs, invalid page ranges, path errors), which matters for a file-reading tool with no annotations.

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 0%, so the description must compensate, and it does document all three parameters including that start_page is 0-indexed and end_page is exclusive — real semantics absent from the schema. However it omits what happens when start_page/end_page exceed document bounds or how the two interact.

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?

The first sentence gives a specific verb and resource ("Extract text from any PDF file on the local machine") and immediately scopes it to files not managed by Zotero. It contrasts implicitly with the Zotero-side extraction sibling without naming it, so an agent can route correctly but only by inference from the negative scope.

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?

It states clearly when to use it: PDFs outside Zotero, with concrete examples (~/Documents, ~/Downloads, any other folder). It also explains path resolution against LOCAL_PDF_DIR if that variable is set. It lacks an explicit named alternative for Zotero-managed PDFs, so the exclusion is implied rather than routed.

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