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
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| url | No | ||
| file | No | ||
| maxText | No |
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
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| url | No | ||
| file | No | ||
| maxText | No |
Changes observed during successful MCP inspections.
Input schema / allOfAdded value: +[
+ {
+ "anyOf": [
+ {
+ "required": [
+ "url"
+ ]
+ },
+ {
+ "required": [
+ "pdf"
+ ]
+ },
+ {
+ "required": [
+ "file"
+ ]
+ }
+ ]
+ }
+]Input schema / properties / file / descriptionRemoved value: -"File to process"Input schema / properties / maxText / descriptionRemoved value: -"MaxText to process"Input schema / properties / pdf / descriptionRemoved value: -"Pdf to process"Input schema / properties / url / descriptionRemoved value: -"Url to process"Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It does disclose two real behaviors — SSRF guarding and a per-wallet free-call quota — which is genuinely useful, but it omits failure modes, size/page limits, whether the call is read-only and safe to retry, and what happens with scanned or encrypted PDFs.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three short front-loaded fragments — purpose, safety property, pricing — with no filler sentences. The emoji and prefixed tool name are mild noise but cost almost nothing in length.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a four-parameter tool with zero schema descriptions and no output schema, the definition should at minimum explain the three mutually exclusive input shapes and the maxText cap. It explains one, so an agent can call the URL path correctly but is under-informed for the `pdf` and `file` variants.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description must compensate and only partially does: it explains the URL path but says nothing about `pdf` (inline base64/content?), `file` (a path or identifier?), or `maxText` (a character cap? a boolean-ish flag typed as string?). The three alternate input modes in the anyOf are never acknowledged, leaving the caller to guess.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ("Parse a PDF") plus the concrete outputs (extracted text, page count, metadata) and the underlying library, so the agent knows exactly what it gets back. It does not differentiate itself from look-alike siblings such as x402-pdf-text, but the stated behavior is unambiguous on its own.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use or when-not-to-use guidance and no mention of alternatives for text-only vs. structured extraction. The only contextual line is a billing note (5 free trial calls per signed wallet), which tells the agent nothing about selecting this tool over another.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.