Skip to main content
Glama

BaseGuard402 MCP Server (14 Base x402 v2 USDC APIs)

pdf_clean

$0.02 USDC on Base (x402 v2). SSRF-Safe PDF-to-Markdown & Metadata Extractor — Use this tool when an AI agent needs to read a public PDF whitepaper, invoice, research paper, or regulatory filing without downloading binary blobs into context. Extracts clean st

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": "pdf_clean"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http:// or https:// URL pointing to a PDF file (max 4 MB).
max_charsNoMaximum number of Markdown characters to return.
max_pagesNoMaximum number of PDF pages/sections to extract.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden and does add real value: it names a per-call cost ($0.02 USDC on Base, x402 v2), a payment protocol, and SSRF-safe handling. However, it is truncated mid-sentence ('Extracts clean st'), leaving the return behavior undefined, and it never says whether payment is charged on failure, what errors look like, or what metadata fields come back.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening pricing/protocol tag is useful but is front-loaded ahead of the actual purpose, delaying what the tool does. The text is otherwise dense and non-repetitive, but it ends abruptly mid-word, which reads as a broken rather than a deliberately bounded definition.

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?

For a paid, no-annotation, no-output-schema tool, the description covers cost, payment rail, security posture, and intended document types — the key prerequisites. It is nonetheless incomplete: the return payload (markdown plus what metadata?) is never described because of the truncation, and failure/refund behavior for a paid call is unaddressed.

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 description coverage is 100%, and all three parameters (url, max_chars, max_pages) are fully documented with formats, defaults, ranges, and examples. The description adds only the general notion of 'public PDF' and implicitly the size constraint, so it does not meaningfully extend parameter meaning beyond the schema — the baseline 3 applies.

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 and resource: 'SSRF-Safe PDF-to-Markdown & Metadata Extractor', plus the concrete input domain (public PDF URL). An agent can immediately tell this converts a PDF into markdown/metadata rather than fetching raw bytes. It doesn't explicitly contrast with a sibling like url_clean, so it stops short of a 5.

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?

Gives explicit when-to-use context: reading public PDF whitepapers, invoices, research papers, or regulatory filings without pulling binary blobs into context. There is no when-not-to-use guidance (e.g., non-public/auth-gated PDFs, oversized files) and no named alternative, so it is clear but not complete.

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.