Skip to main content
Glama

AgentX402: Pay-per-Call AI, Web Render, Search & DeFi Tools

extract_pdf_to_json

Read-onlyIdempotent

Extract invoices, reports, and tables from PDF URL or base64 to JSON ($0.05 USDC or free trial).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "extract_pdf_to_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdf_urlNo
pdf_base64No
schema_hintNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered; the description adds genuinely useful cost context ($0.05 USDC or free trial). It omits failure behavior, page/size limits, and the fact that one of the two input fields must be supplied (required is empty).

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?

A single dense sentence: action, inputs, output format, and cost, with the verb and resource front-loaded. Nothing is padded, though the price parenthetical is secondary detail rather than selection-critical guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter tool with no output schema and 0% schema coverage, the description leaves too much open: no guidance on choosing url vs base64, no explanation of schema_hint, no limits on size or page count, and no note on what the returned JSON looks like beyond the word 'JSON'.

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%, so the description must carry the param burden. It does explain that input can be a URL or base64 (covering pdf_url/pdf_base64 as alternatives), but schema_hint — a third, potentially important shaping parameter — is never mentioned anywhere.

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?

Specific verb plus resource: extracts invoices, reports, and tables from a PDF (URL or base64) into JSON. The 'from PDF' framing implicitly separates it from extract_web_to_json and web_to_markdown, though it never names those siblings explicitly.

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?

Input modes (PDF URL or base64) are stated, which implies when the tool applies, and the price line signals this is a paid call. There is no explicit when-to-use versus extract_web_to_json or web_to_markdown, and no exclusions such as unsupported or encrypted PDFs.

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