Skip to main content
Glama

AgentWork Web Evidence

PDF pre-check (info)

pdf_info
Read-onlyIdempotent

PDF pre-check: is this URL a readable digital PDF? $0.001. Checks a public PDF before you pay for extraction: PDF version, page count, size, encryption, fonts (text vs scanned) and whether pdf/read will accept it. $0.001 on Base ($0.002 Algorand). No text extraction. Failed fetches not settled. Price (USDC): Base single $0.001; Algorand single $0.002. Paid per call with x402 v2 (params._meta["x402/payment"]).

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_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic HTTP/HTTPS URL of the PDF

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (readOnly/idempotent/openWorld/non-destructive), the description discloses billing semantics that matter operationally: per-call pricing by chain, 'failed fetches not settled', and the x402 payment parameter location. It also enumerates what the check reports (version, pages, size, encryption, fonts/text-vs-scanned), which is valuable since there is no output schema.

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 core question is front-loaded, which is good, but the price is restated three separate times ('$0.001', '$0.001 on Base ($0.002 Algorand)', 'Base single $0.001; Algorand single $0.002'), so several clauses are redundant. It reads as a marketing blurb rather than a tight definition.

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 one-parameter, read-only pre-check with no output schema, the description covers what is inspected, the payment model, and that failed fetches are free — enough for correct invocation. It could say more about what a negative result looks like (non-PDF, scanned-only, encrypted), but nothing essential is missing.

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% for the single 'url' parameter (public HTTP/HTTPS, max 2048), so the schema already carries the meaning. The description only reinforces the 'public' constraint and adds no format or edge-case detail beyond it, matching the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — a pre-check answering 'is this URL a readable digital PDF?' — and immediately scopes it against extraction work ('No text extraction', 'before you pay for extraction'). An agent can distinguish it from pdf_text_extraction / pdf/read without opening any schema.

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 clear context for when to call it: as a paid gate before extraction, and to learn whether pdf/read will accept the document. It does not explicitly name the sibling to use afterward or state when to skip the check (e.g., for known-good files), so it stops just short of full when/when-not guidance.

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