Skip to main content
Glama

web_pdf_text

Read-only

PDF to text — Fetch a PDF by URL and get its text as clean Markdown (headings, lists and tables preserved), up to 100,000 characters. For agents reading filings, research papers, contracts, manuals and reports. Text PDFs only; scanned images are reported as such. Price: $0.008 USDC (Base, via x402).

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": {
      "url": "<url>"
    },
    "name": "web_pdf_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNooptional maximum characters to return (default 20000)
urlYesPDF URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, destructiveHint=false, openWorldHint). The description adds behavior beyond that: a payment requirement with exact pricing and network ('$0.008 USDC (Base, via x402)'), a character ceiling, and a documented failure mode for image-only PDFs. Timeouts, redirect handling, and error semantics are not covered, keeping it out of the top band.

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?

Three tight sentences: what it does and returns, who it is for and its limitation, then cost. The most decision-relevant content (verb, output format, PDF-type restriction) is front-loaded and nothing is repeated from the schema or annotations.

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?

For a two-parameter tool with no output schema, the description still conveys the return format, the size ceiling, the unsupported input class, and the paid-call cost, which is nearly everything needed to invoke it correctly. Only edge behavior on malformed URLs, very large files, or failed fetches is left unspecified.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds a fact the schema omits: the absolute ceiling of 100,000 characters, versus the schema's stated default of 20,000 for `max`. That distinction tells the agent how far the parameter can usefully be pushed, which is real meaning beyond the schema text.

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 ('Fetch a PDF by URL and get its text as clean Markdown') and specifies the output shape (headings, lists, tables preserved). It does not explicitly contrast with the nearby ai_summarize_pdf sibling, so the agent must infer that this tool extracts rather than summarizes, but the extraction framing is unambiguous.

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 a clear use context ('For agents reading filings, research papers, contracts, manuals and reports') and a hard eligibility constraint ('Text PDFs only; scanned images are reported as such'), which is exactly the kind of when-not-to-use signal an agent needs. It stops short of naming an alternative for scanned PDFs or for summarization needs, so no explicit routing is provided.

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