Skip to main content
Glama

PDF to Text

PDFtoText
Read-only

PDF to Text: PDF to Text extracts the text layer of a PDF, uploaded or fetched from a URL, and returns it as plain text with the page, word and character counts. Paid plans add the text of each page separately and the document metadata, such as title, author and creation date. (Cost: 10 credits)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "PDFtoText"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdfNoThe PDF file to read (up to 10 MB), or a public PDF URL

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNoError message, null on success
statusNo"ok" on success

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already establish read-only, non-destructive, open-world behavior, and the description adds useful context beyond them: a 10-credit cost, and the fact that per-page text and document metadata are gated behind paid plans. That paid-tier disclosure is real behavioral information an agent needs. It does not cover failure behavior or the schema's 10 MB cap, but the annotation baseline is already covered.

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 core action is front-loaded and the cost note is compact and useful. The opening redundantly repeats the tool name ('PDF to Text: PDF to Text extracts...'), which wastes the most prominent position on already-known information.

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 enumerated, and the description still usefully summarizes the counts and paid-tier fields. For a single-parameter tool that is essentially sufficient, with the main missing piece being what happens with scanned PDFs that have no text layer.

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?

There is a single parameter with 100% schema description coverage, so the schema already explains both the file and URL forms. The description only restates 'uploaded or fetched from a URL' without adding format, encoding, or URL-access constraints, so the baseline of 3 is appropriate.

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 description names a specific verb and resource ('extracts the text layer of a PDF') and clarifies the two input modes and the returned plain text. It implicitly separates itself from PDFtoImage/PDFMerge by making clear only the text layer is extracted, but it never names a sibling to steer an agent explicitly.

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?

The usage context is implied: use it with a PDF file or a public URL, and note that only the text layer is read. There is no explicit when-to-use vs. alternatives guidance (e.g., ImageToText, HTMLtoText), and no warning that scanned/image-only PDFs will yield nothing, which is a material selection caveat.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.