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 and free.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pdfNoPdf to process
urlNoUrl to process
fileNoFile to process
maxTextNoMaxText to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "Url to process",
      +  "type": "string"
      +}
  2. First observed

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two real behavioral traits: SSRF guarding on fetched URLs and that the tool is free (no payment gating). It stops short of covering error behavior, fetch limits, timeout, or what happens with malformed PDFs.

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?

One compact sentence, front-loaded with the verb and resource, and no filler. The only waste is repeating the tool name as a prefix, which the name field already supplies, and it could have used the remaining space for parameter guidance.

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?

No output schema exists, so the description usefully names the return shape (text, page count, metadata), which is a genuine addition. But for a 4-parameter tool with no annotations and ambiguous, redundant input options, the missing parameter-selection guidance leaves the definition incomplete.

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?

The schema nominally has 100% description coverage, but every parameter description is a tautology ('Url to process', 'MaxText to process'). The tool description says it parses 'from a URL', which contradicts the presence of pdf and file inputs and leaves the mutual exclusivity of pdf/url/file and the meaning of maxText entirely unexplained.

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 gives a specific verb and resource ('Parse a PDF') plus the outputs (extracted text, page count, metadata) and the underlying library. It does not, however, distinguish itself from the close sibling x402-pdf-text, which an agent comparing the two would need.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no statement about which of the four input parameters to supply, and no routing to alternatives such as x402-pdf-text or x402-pdf-text sibling tools. The agent must infer everything from the schema.

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