Skip to main content
Glama
WebDAV Knowledge MCP

WebDAV Knowledge MCP

by EI-robot

read_pdf

Extract text from a PDF's text layer by page range to read or search document content and identify pages that may need OCR.

Instructions

Extract a PDF's text layer at 1-based physical page numbers.

Use next_page to continue. empty_pages lists pages with no extracted text. Such pages may need OCR. Layout, tables and equations can lose structure. Returned text is source data. No links, attachments or actions are opened.

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
max_bytesNo
max_charsNo
max_pagesNo
start_pageNo
max_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/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 load and does well: it discloses structure-loss risk ("Layout, tables and equations can lose structure"), the empty_pages signal, incremental pagination, and a clear safety statement ("No links, attachments or actions are opened"), which implies a non-executing read. It omits any statement about permissions, corpus scope, or what happens when a page budget is hit mid-document.

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?

Six short lines, front-loaded with the core action and coordinate system before caveats; almost no waste. The telegraphic fragments ("Such pages may need OCR.") read slightly clipped, and the next_page sentence is placed where it looks like parameter guidance.

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 six-parameter tool with zero schema coverage and no output schema, the behavioral picture (pagination, OCR gaps, layout degradation, no side effects) is unusually complete, but the budget/cap parameters that govern truncation behavior are left entirely unexplained, leaving the agent guessing how limits interact.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across six parameters, so the description must compensate and largely does not. It clarifies page numbering for start_page and implies paging limits behind max_pages, but max_bytes, max_chars, max_seconds, and path are given no meaning at all, and the referenced next_page is not even an input parameter.

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?

"Extract a PDF's text layer at 1-based physical page numbers" names a specific verb (extract), a specific resource aspect (text layer), and a precise coordinate system (1-based physical pages). This clearly separates it from read_file/read_markdown siblings, which do not have page semantics or an OCR caveat.

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?

It gives continuation guidance ("Use next_page to continue") and a fallback hint (pages in empty_pages may need OCR), which is real when-to-use direction. However, it never explicitly contrasts with read_file or read_markdown, and "next_page" matches no property in the input schema, so an agent could waste a call trying to pass it as a parameter rather than reading it from the response.

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