Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-publish-1796026614470-agent-exec-docjson

agent-exec doc/json: POST /doc/json -- Read named fields out of a PDF: send one PDF URL and up to 10 {name,label,kind} specs, pay per document in USDC, get one JSON object back keyed by your own names. A label the document does not print answers null, never a guess. Up to 20 pages a call, no signup, no API key. A refusal costs nothing unpaid and is held as a prepaid call when paid. Tell us what broke with Method: POST Input: {"url": "string", "fields": "array", "maxPages": "integer, optional"}

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": "x402-publish-1796026614470-agent-exec-docjson"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations at all, the description carries the full load and does substantial work: pay-per-document in USDC, hard caps of 20 pages and 10 fields, missing labels return null rather than a guess, and refusals cost nothing unpaid but are held as prepaid calls when paid. It stops short of describing how payment is actually authorized, what an error/refusal looks like on the wire, or latency, which keeps it off a 5.

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 is front-loaded and dense with useful facts, but the trailing "Tell us what broke with Method: POST Input: {...}" mashes a bug-report instruction and a pseudo-schema into one run-on line, which is confusing and partly redundant with the schema block. Trimming that tail would lose nothing.

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?

There is no output schema, yet the description explains the return shape (one JSON object keyed by caller names, null for unprinted labels) plus cost, limits, and auth-free access. For a paid extraction endpoint that is nearly everything an agent needs before calling; only failure/payment mechanics remain unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema declares zero properties, so the description is the only source of parameter meaning, and it supplies real semantics: url is a single PDF URL, fields is an array of up to 10 {name,label,kind} specs where name is the caller's output key, and maxPages is an optional page cap. Types are tagged inline (string/array/integer, optional) which compensates for the empty schema.

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?

"Read named fields out of a PDF" is a specific verb+resource and the follow-on clause (send one URL plus up to 10 {name,label,kind} specs, get a JSON object keyed by your own names) makes the contract concrete. It implicitly separates this from plain text-extraction siblings by emphasizing caller-supplied field names and null-on-absence, though no sibling is named 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?

The description conveys the operating envelope (one PDF URL, up to 10 field specs, up to 20 pages per call, no signup or API key) which helps an agent know if it qualifies. It never states when to prefer this over the pdf-text or scrape siblings, nor what kinds of documents are unsuitable, so the choice between alternatives is left to inference.

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.