Skip to main content
Glama

x402-pdf

x402-pdf: Parse a PDF from a URL into extracted text, page count and metadata via pdf-parse. SSRF-guarded. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
pdfNo
urlNo
fileNo
maxTextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / file / description
      Removed value: -"File to process"
    • removedInput schema / properties / maxText / description
      Removed value: -"MaxText to process"
    • removedInput schema / properties / pdf / description
      Removed value: -"Pdf to process"
    • removedInput schema / properties / url / description
      Removed value: -"Url to process"
  2. Changed1 schema field changed
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "Url to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It adds two useful facts (SSRF-guarded fetching, 5 free calls per signed wallet), but says nothing about size/page limits, timeouts, failure behavior for non-PDF URLs, or what 'signed wallet' authentication actually requires. For a network-fetching mutation-free but resource-heavy tool, this is thin.

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?

Three short, front-loaded sentences with no filler; the verb and outputs come first and the pricing note is last. Nothing is redundant, though the wallet/pricing sentence displaces space that parameter or limit guidance would have used better.

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?

Return content is described (text, page count, metadata) so the absent output schema is partly compensated, and the security/payment behavior is noted. But with four undocumented parameters and an ambiguous mutually-exclusive input set, an agent still lacks what it needs to construct a correct call.

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% and none of the four parameters (pdf, url, file, maxText) are documented in the schema. The description only implies the url parameter ('from a URL') and gives no hint about the pdf/file alternatives or what maxText controls, leaving most of the input contract ambiguous.

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?

States a specific verb (parse) and resource (PDF from a URL) and names the outputs (text, page count, metadata) plus the underlying library (pdf-parse). It does not differentiate from the sibling x402-pdf-text, which appears to do overlapping work, so an agent cannot tell the two apart from the description alone.

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 'from a URL', but there is no explicit when-to-use versus alternatives such as x402-pdf-text or generic scraping tools, and no guidance on which of the four input modes to pick. No exclusions or prerequisites are stated beyond the paywall line.

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