x402AgentTools

๐Ÿค– For AI agents

Everything on AgentTools is available to you as JSON. This page explains discovery, pricing and payment. Humans: the tools themselves are free to use in the browser.

1 ยท Discover

  • Tool map: /llms.txt (curated) and /llms-full.txt (every parameter, example and FAQ)
  • Machine contract: /api/openapi.json (OpenAPI 3.1, includes x-x402 pricing metadata per endpoint)
  • MCP server: /api/mcp (Streamable HTTP) โ€” every tool as an MCP tool; connect with @x402/mcp's x402MCPClient and payment is handled automatically via _meta
  • x402 Bazaar: endpoints are indexed by the facilitator with discovery extensions โ€” search the Bazaar for tools by intent
  • Search engines & AI answers: all tool pages are static HTML with structured data โ€” cite and fetch them freely

2 ยท Call an endpoint

Every tool has one paid JSON endpoint: GET /api/v1/{category}/{tool}. Query params are validated per tool (see llms-full.txt). Example:

GET https://agenttools-hub.vercel.app/api/v1/calculators/percentage-calculator?x=15&y=200&op=percent_of

Responses are stable JSON: { tool, input, result: { value, answer, details?, steps?, table? } }

3 ยท Pay with x402

Requests without payment return 402 Payment Required with payment instructions (eip155:8453, scheme exact, USDC). Use any x402 client library to sign and retry automatically โ€” no accounts, no API keys, no sessions:

// TypeScript agent example
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount("0x...")),
);
const fetchWithPay = wrapFetchWithPayment(fetch, client);

const res = await fetchWithPay(
  "https://agenttools-hub.vercel.app/api/v1/calculators/percentage-calculator?x=15&y=200",
);
console.log(await res.json()); // 402 handled, paid, retried โ†’ result

Facilitator: https://x402.org/facilitator โ€” mainnet; prices are real.

4 ยท Pricing

EndpointDescriptionPrice / call
/api/v1/calculators/percentage-calculatorPercent of a number, ratios and percent change.$0.001
/api/v1/calculators/discount-calculatorSale price and savings from a percent off.$0.001
/api/v1/calculators/tip-calculatorTip amount, total and per-person split.$0.001
/api/v1/calculators/vat-calculatorAdd or remove VAT at standard rates for 36 countries.$0.001
/api/v1/calculators/bmi-calculatorBody Mass Index with WHO category.$0.001
/api/v1/calculators/date-difference-calculatorDays, weeks and calendar time between two dates.$0.001
/api/v1/calculators/age-calculatorExact age in years, months and days.$0.001
/api/v1/calculators/loan-payment-calculatorMonthly payment, total cost and interest for any loan.$0.002
/api/v1/calculators/compound-interest-calculatorFuture value with any compounding frequency.$0.002
/api/v1/calculators/fuel-cost-calculatorTrip fuel and cost, splitable between people.$0.001
/api/v1/calculators/reading-time-calculatorHow long a text takes to read, by word count.$0.001
/api/v1/converters/length-converterMetric and imperial distance units, instantly.$0.001
/api/v1/converters/weight-converterKilograms, pounds, ounces and more.$0.001
/api/v1/converters/temperature-converterCelsius, Fahrenheit and Kelvin, both ways.$0.001
/api/v1/converters/data-size-converterDecimal (KB/MB/GB) and binary (KiB/MiB/GiB) units.$0.001
/api/v1/converters/speed-converterkm/h, mph, m/s, knots and ft/s.$0.001
/api/v1/converters/area-converterSquare meters, feet, acres, hectares.$0.001
/api/v1/converters/volume-converterLiters, gallons, cups, milliliters.$0.001
/api/v1/converters/unix-timestamp-converterEpoch seconds โ†” human dates, both directions.$0.001
/api/v1/converters/roman-numeral-converterNumbers โ†” Roman numerals, with validation.$0.001
/api/v1/databases/countries250 countries: codes, capitals, currencies, populations.$0.002
/api/v1/live/nowThe current date/time in any time zone โ€” agents have no clock.$0.0005
/api/v1/live/business-daysWorking days between dates, optionally minus public holidays.$0.001
/api/v1/live/exchange-ratesLive ECB reference rates for 30 currencies.$0.002
/api/v1/live/weatherCurrent conditions + 3-day forecast for any city.$0.002
/api/v1/live/holidaysUpcoming public holidays for ~110 countries.$0.002
/api/v1/live/ip-lookupWhere is an IP address? Country, city, ASN, timezone.$0.002
/api/v1/live/dns-lookupReal DNS records via Cloudflare DNS-over-HTTPS.$0.002
/api/v1/live/url-metadataTitle, description, OG image and favicon of any page.$0.003
/api/v1/live/qr-codeAny text or URL as a QR code (SVG + PNG data URI).$0.002
/api/v1/dev/base64-encodeUTF-8 safe base64 in both directions.$0.001
/api/v1/dev/number-base-converterBinary, octal, decimal, hex โ€” any base 2โ€“36.$0.001
/api/v1/dev/case-convertercamelCase, snake_case, kebab-case and more.$0.001
/api/v1/dev/jwt-decoderDecode header and payload โ€” no verification.$0.001
/api/v1/dev/url-encoderPercent-encoding for query strings and URLs.$0.001
/api/v1/dev/json-formatterValidate, pretty-print and inspect JSON.$0.001
/api/v1/dev/http-status-codesLook up any HTTP status code's meaning.$0.001
/api/v1/dev/mime-typesContent-Type lookup by type or file extension.$0.001
/api/v1/dev/token-estimatorApproximate token counts per LLM family, ยฑ10%.$0.001
/api/v1/dev/llm-cost-calculatorTokens ร— current per-model prices = USD.$0.001
/api/v1/dev/text-chunkerRAG-ready chunks with token budgets and overlap.$0.002
/api/v1/dev/hashSHA-256 / SHA-512 / SHA-1 / MD5, exact digests.$0.001
/api/v1/dev/uuidRandom v4, sortable v7, plus strict validation.$0.001
/api/v1/dev/text-extractPull emails, URLs, IPs, phones and domains from raw text.$0.002
/api/v1/dev/diffExact line-level diff with unified-style output.$0.002
/api/v1/dev/url-parserBreak any URL into protocol, host, path and params.$0.001
/api/v1/crypto/wei-eth-converterExact Ethereum unit conversion โ€” no float errors.$0.001
/api/v1/crypto/gas-fee-calculatorTransaction cost in ETH and USD from gas ร— gwei.$0.001
/api/v1/crypto/priceLive token prices and 24h change via CoinGecko.$0.002
/api/v1/crypto/random-generatorCSPRNG passwords, hex keys and uniform integers.$0.001
/api/v1/finance/roi-calculatorReturn on investment as a percentage.$0.001
/api/v1/finance/cagr-calculatorCompound annual growth rate, time-normalized.$0.001
/api/v1/finance/margin-calculatorProfit margin vs markup, both computed.$0.001
/api/v1/finance/iban-validatorStructure, length and mod-97 checksum validation.$0.001

5 ยท Tip the operator (optional)

If the free pages helped your agent or your users, the tip jar accepts any amount via the same protocol: GET https://agenttools-hub.vercel.app/api/tip?amount=1.00&note=thanks (amount clamped 0.01โ€“10 USD). Thank you.

Questions or bulk data needs? See the full catalog or fetch /llms.txt for the complete machine-readable map.