Skip to main content
Glama

crypto-web-data-api

Extract text from a PDF by URL

pdf
Read-only

Extract text from a PDF by URL. Downloads a public PDF (up to 15 MB) and returns its text page by page with title, author and page count. Scanned PDFs without a text layer return little text. Cached 1 h. Price $0.010 per call (x402: USDC on Base or Solana).

Input Schema

NameRequiredDescriptionDefault
txNoAlternative to the X-Payment-Tx header
urlYeshttp(s) URL of the PDF
max_charsNo
max_pagesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnly and openWorld, so the description carries the rest and does so well: 15 MB size cap, page-by-page output shape, the scanned/no-text-layer failure mode, 1-hour caching, and pricing with accepted payment rails. It stops short of saying what happens when max_pages/max_chars truncate the result or what a failed download/payment looks like.

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?

Five short sentences, front-loaded with the action, then output shape, failure mode, caching, and price. Nothing is redundant or padded.

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?

With no output schema, the description adequately sketches the return payload (text per page plus title, author, page count) and covers cost and latency expectations. It falls short only on the truncation parameters and on error behavior, which matter for a paid, rate-limited external fetch.

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 coverage is only 50%: url and tx are documented in the schema, but max_chars and max_pages have no description anywhere, and with their large defaults (50,000 chars / 50 pages) they materially affect whether the caller gets full text. The description's "page by page" hints at page handling but adds no meaning for either limit, so it does not compensate for the gap.

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?

States a specific verb+resource+input form: "Extract text from a PDF by URL." This distinguishes it from the sibling fetch (raw retrieval) and youtube_transcript (different source type), and the follow-up sentence specifies exactly what is returned.

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?

Usage is implied by the resource type, and the scanned-PDF caveat signals when the tool will underperform. However, it never explicitly contrasts with the sibling fetch tool (why not just fetch the PDF?) nor states prerequisites such as the URL needing to be public.

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