minia2a-x402

v1.0.4
uk.minia2a/minia2a-x402 Checked 20 hours ago Published 13 days ago

x402 directory for AI agents: pay-per-call APIs, USDC on Base, 5 free trials per wallet.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

minia2a_list_services

List available x402 services on minia2a.uk — the micropayment marketplace for AI agents. Returns service name, description, price, and endpoint for each service. Use this to discover what capabilities are available before calling them.

ParameterTypeDescription
categorystringFilter by category (e.g., 'crypto', 'utility', 'data', 'ai')
limitnumberMax number of results to return (default 20)
searchstringSearch term to filter services by id, name, or description. Hyphens and underscores are treated as spaces, so 'crypto-price' and 'crypto_price' both match.

minia2a_get_service

Get detailed information about a specific x402 service on minia2a.uk: price, endpoint URL, what parameters it takes (read from the service's own 402 example — one unpaid GET, nothing charged), and usage instructions. Use this before calling a service to understand what it needs.

ParameterTypeDescription
serviceId *stringThe service ID or name to get details for

minia2a_get_stats

Get current platform statistics for minia2a.uk — total services, registered agents, transaction volume, uptime, and more. Useful for understanding the marketplace's scale and health.

minia2a_register

Register a self-custody wallet on minia2a.uk to publish your own services (EIP-191 signature). Registration is for publishing — it is NOT required for trials: any wallet signed in minia2a_call_service already gets 5 free trial calls. If you don't provide a wallet+signature, this tool generates a fresh wallet, signs 'minia2a register: <your-wallet>' with EIP-191, registers it, and returns the private key — store it, the platform never holds it.

ParameterTypeDescription
name *stringA name for your agent (e.g., 'my-trading-bot')
signaturestringEIP-191 signature of 'minia2a register: <wallet>'. Required if you supply a wallet.
walletstringYour existing self-custody wallet address (0x...). Omit to have a fresh wallet generated for you.

minia2a_call_service

Call an x402 service on minia2a.uk. Three access paths: (1) omit everything for the paid 402 path (sign a wallet for 5 free trial calls — no registration); (2) pass privateKey (or set MINIA2A_PRIVATE_KEY) for your wallet's own 5 trials — the key never leaves this process, it only signs the per-call trial message; (3) when both are exhausted the endpoint returns HTTP 402 with a machine-readable accepts[] array — pay in USDC and retry with a PAYMENT-SIGNATURE header (x402 V2). Set autoPay:true together with privateKey to have a 402 paid automatically in USDC on Base and the call retried  

ParameterTypeDescription
serviceId *stringThe service ID (e.g., 'x402-gas') or full endpoint path
autoPaybooleanWhen true and a privateKey is available, a 402 Payment Required response is paid automatically in USDC on Base via x402 and the call retried. Default false — you get a payment_required response inst…
paramsobjectJSON parameters to send to the service. These are the service's OWN parameter names (e.g. {"ext":"json"} for x402-mime-type), nested here — not flattened onto the top level.
privateKeystringPrivate key of your wallet, used locally to sign the trial message (EIP-191). Never transmitted — only the resulting signature is sent. Falls back to the MINIA2A_PRIVATE_KEY env var.
walletstringYour self-custody wallet address (0x...). Without privateKey this alone does not draw on the wallet's trial bucket.

minia2a_check_endpoint

Validate any x402 endpoint for autonomous-agent (Claude Code auto-mode) readiness. Checks 9 signals: HTTP reachability, JSON content-type, payment challenge (canonical PAYMENT-REQUIRED header or legacy x-402-* headers), payment amount, network, recipient, trial info, registration path, and /api/agent-ready handshake. Returns a score (0-100%) with per-check PASS/FAIL detail. Use this before calling a paid endpoint to verify it works with autonomous agents.

ParameterTypeDescription
endpointUrl *stringThe endpoint URL to validate (e.g., 'https://minia2a.uk/x402/gas')