Skip to main content
Glama

PDF to text

pdf

A public PDF URL in, its text page by page out (up to 50 pages, 10 MB; text-based PDFs). Paid: $0.008 USDC on Base via x402 (charged only when text comes back). Unpaid calls return x402 payment requirements; retry with _meta["x402/payment"].

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) URL of a PDF.
pagesNoOptional page numbers (up to 50): [1, 2] or "1-3,7".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses pricing, x402 payment flow, that charges apply only on successful text extraction, how unpaid calls behave, and the retry mechanism. It also states page/size limits and the text-based PDF constraint.

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?

The description is compact and front-loaded: input/output behavior first, then limits, then payment details. Every clause adds useful information for invoking the tool correctly.

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?

There is no output schema, so the description must convey return behavior; 'text page by page out' and 'charged only when text comes back' do this adequately. It could be slightly more explicit about the exact return shape and behavior on scanned/non-text PDFs.

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 the schema already documents both url and pages thoroughly. The description adds the 50-page/10 MB constraints but little else about parameter semantics beyond what the schema provides.

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 clearly states a PDF URL is converted into page-by-page text, which is a specific resource + transformation. It does not explicitly differentiate itself from siblings such as scrape or metadata, so it falls short of a 5.

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 gives clear usage context: public http(s) PDF URLs, text-based PDFs only, and page/size limits. It does not explicitly name alternatives like scrape or metadata or state when those should be preferred.

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.

Resources