# Toolrail > Pay-per-call utility API for AI agents via the x402 payment protocol (USDC on Base or Solana — every 402 offers both). No API keys, no subscriptions: call an endpoint, receive HTTP 402 with payment instructions, pay, retry, get the resource. Gas is sponsored by the facilitator. Base URL: https://toolrail.dev Agent setup: fetch https://toolrail.dev/skill.md and follow it. No wallet? https://toolrail.dev/mcp exposes 37 tools as a free demo (30 tool calls per UTC day per anonymous client). For production volume use the x402 HTTP API. Add MCP with `claude mcp add --transport http toolrail https://toolrail.dev/mcp`. Focused MCP endpoints (fewer tools, same shared quota): https://toolrail.dev/mcp/chile, https://toolrail.dev/mcp/argentina, https://toolrail.dev/mcp/latam, https://toolrail.dev/mcp/global. Browser demo: https://toolrail.dev/try (English), https://toolrail.dev/probar (Spanish). Client-specific integration: https://toolrail.dev/integrate or https://toolrail.dev/integrar. Free tier, no key or wallet: GET /cl/indicadores, GET /cl/uf, GET /cl/feriados, POST /cl/rut, GET /cl/rut, GET /days/holidays, GET /latam/iva, GET /vat/rates, GET /fx/convert, GET /fx/rates answer without payment up to 100 calls per client IP per UTC day (headers X-Free-Limit and X-Free-Remaining). A bare call without parameters returns the x402 quote and does not use the quota. After the quota, or for any other route, the usual x402 quote applies. ## What it offers - PDF generation from JSON templates (invoice, report, contract) or raw HTML - Global calendar: public holidays and business-day math for supported countries - EU VAT: current rates from the reviewed vatnode open dataset + official VIES number validation + net/gross price calculator - FX: ECB reference rates for 30+ currencies, current and historical since 1999 - Validation: IBAN (88 countries, ISO 13616), phone numbers (~240 regions), and tax IDs for LATAM + Spain (RUT, CUIT, CPF/CNPJ, RFC, RUC, NIT, NIF) - LATAM: all-region official FX aggregator (CLP/ARS/BRL/MXN/COP/PEN in one call), inflation-indexed units (UF, UVA, UVR, UDI, UI), policy rates of five central banks (CL, BR, MX, CO, PE), Brazil rates (SELIC/CDI/IPCA/PTAX), CEP and CNPJ company lookup, every Argentine dollar (oficial, blue, MEP, CCL, mayorista, cripto, tarjeta), Argentina inflation + country risk, Colombia TRM, Peru SBS rate, Mexico FIX + TIIE, Chilean IPC adjustment calculator - QR code generation (PNG/SVG) - Chile operational data: UF/UTM/dólar/TPM/IMACEC/copper/unemployment indicators, UF-CLP conversion, business-day math with official holidays, RUT validation, net salary and boleta de honorarios calculation, Chilean IPC adjustment (reajuste) ## Endpoints (price per call in USD, paid in USDC) - POST /pdf — $0.01 — Generate a print-ready PDF from JSON data (invoice, report, contract templates) or raw HTML. Returns application/pdf. No account or subscription needed. Use when an agent must hand a person a document: invoices, quotes, reports or contracts as a PDF file. - GET /vat/rates — $0.002 — Current VAT rates for supported European countries (EU-27 + UK, CH, NO...). Standard, reduced and super-reduced rates, provided through the third-party vatnode dataset; verify applicability for your transaction. Latin American codes (CL, MX, PE...) are answered from the /latam/iva dataset. Use when pricing, invoicing or checking tax for a customer in Europe and you need that country's VAT rate. - POST /vat/validate — $0.003 — Validate an EU VAT number against the official European Commission VIES registry, with retries and caching for reliability. Returns validity, company name and address. Use when onboarding or invoicing an EU business and you must confirm its VAT number is registered. - POST /vat/price — $0.002 — VAT price calculator for supported European countries: net-to-gross or gross-to-net with the current standard or reduced rate. Returns net, VAT amount and gross. Use when you have a price and a European country and need the amount with or without VAT. - GET /fx/convert — $0.003 — Convert between ~30 major currencies (including BRL and MXN) using official European Central Bank reference rates, current or historical since 1999; for CLP, ARS, COP or PEN use /latam/fx. Use when converting an amount between major currencies at an official reference rate, today or on a past date. - GET /fx/rates — $0.003 — Full ECB reference rate table for any base currency, current or for a historical date since 1999. Use when you need many exchange rates at once against one base currency, today or historically. - GET /days/holidays — $0.003 — Official public holidays for supported countries (any year 1975-2075): date, local and English name, nationwide vs regional flag. Chile enhanced with a curated statutory table. Use when checking whether a date is a public holiday in a country or listing a year's holidays. - GET /days/business-days — $0.003 — Business-day calculator for supported countries: add N working days to a date skipping weekends and official public holidays. Essential for scheduling, deadlines and logistics. Use when computing a deadline, delivery or payment date that must skip weekends and public holidays. - POST /validate/iban — $0.002 — Validate an IBAN (international bank account number): ISO 13616 mod-97 check digits and per-country length registry for 88 countries. Returns formatted IBAN and BBAN. Use when someone enters a bank account (IBAN) and you must catch typos before a transfer. - POST /validate/phone — $0.002 — Validate and format phone numbers for ~240 regions (Google libphonenumber): validity, region, line type, E.164 / international / national formats. Use when normalizing or checking phone numbers before saving a contact or sending SMS or WhatsApp. - POST /validate/tax-id — $0.002 — Validate the format and supported check-digit rules of tax IDs across Latin America and Spain: Chile RUT, Argentina CUIT/CUIL, Brazil CPF/CNPJ, Mexico RFC, Peru RUC, Colombia NIT, Spain NIF/NIE. Does not verify identity or registration with a tax authority. Use when checking a Latin American or Spanish tax ID's format before saving a customer or an invoice. - GET /latam/indexacion — $0.005 — Latin American inflation-indexed units used in real contracts, mortgages and rents: UF (Chile), UVA (Argentina), UVR (Colombia), UDI (Mexico) and UI (Uruguay) — live official values with local-currency conversion; UF and UI also for a given date. Use when a contract, rent or loan is expressed in UF, UVA, UVR, UDI or UI and you need its value in local currency. - GET /latam/dolar-argentina — $0.005 — Argentine dollar quotes in one call: oficial, blue (parallel) and euro rates with the official-blue gap, plus MEP, contado con liquidación, mayorista, cripto and tarjeta quotes with their gap against the official rate. Use when you need the Argentine peso exchange rate, a specific Argentine dollar (blue, MEP, CCL, tarjeta) or the gaps between them. - GET /latam/fx — $0.015 — LATAM exchange rates against USD in one call: CLP, ARS oficial+blue with gap, BRL PTAX, MXN FIX, COP TRM and PEN SBS. Returns source and observation information per currency; Argentine blue is a market quote, not an official central-bank rate. Partial results are identified. Use when you need official central-bank exchange rates for several Latin American currencies against the US dollar in a single call. - GET /latam/iva — $0.002 — VAT (IVA) rates for 17 Latin American countries, including Argentina, Chile, Colombia, Mexico, Peru (IGV) and the Dominican Republic (ITBIS): standard and reduced rates, plus net-to-gross or gross-to-net calculation. Reviewed dataset with source and review date; Brazil is excluded because it has no single rate. Use when pricing, quoting or invoicing in Latin America and you need the local VAT rate or the amount with or without tax. - GET /latam/unidades-tributarias — $0.003 — Annual tax units used to express fines, thresholds and fees in Latin America: UIT (Peru), UVT (Colombia) and UMA (Mexico). Official value for a date with its legal act and validity window, plus conversion of N units to local currency. Use when a law, fine, tax threshold or fee is stated in UIT, UVT or UMA and you need the amount in local currency. - GET /latam/tasas-politica — $0.01 — Latin American monetary policy rates in one call: Chile TPM, Brazil Selic target, Mexico target rate, Colombia and Peru policy rates, each with its central bank, date (Peru: monthly period) and source. Partial results are identified when a central bank does not answer. Use when you need current central-bank interest rates for several Latin American countries; filter with ?paises=CL,BR. - GET /br/indices — $0.005 — Brazil's key official rates in one call: SELIC target, annualized CDI, monthly IPCA inflation and PTAX dollar — straight from Banco Central do Brasil's SGS API. Use when you need Brazil's interest rate (SELIC/CDI), inflation (IPCA) or official dollar (PTAX). - GET /br/cep — $0.002 — Brazilian postal code (CEP) lookup: street, neighborhood, city, state and IBGE code for any of Brazil's 700k+ CEPs. Use when you have a Brazilian postal code (CEP) and need the full address. - GET /br/cnpj — $0.005 — Brazilian company lookup by CNPJ from the Receita Federal open register: legal and trade name, registration status and date, opening date, legal nature, size, share capital, main CNAE activity and address. Check digits are validated first, including the alphanumeric CNPJ. Partners and contact data are excluded. Use when you have a Brazilian CNPJ and need to confirm the company exists and is active before invoicing or onboarding it. - GET /ar/indices — $0.005 — Argentina's macro pulse: latest monthly inflation, compounded year-over-year inflation, and country risk (riesgo país) in basis points. Use when you need Argentina's latest inflation or country risk for a report or a price adjustment. - GET /co/trm — $0.005 — Colombia's official TRM (Tasa Representativa del Mercado) — the legal COP/USD rate used for taxes and contracts, with validity dates. Use when you need the official COP/USD rate for Colombian taxes, invoices or contracts. - GET /pe/tipo-cambio — $0.005 — Peru's official SBS exchange rate (buy/sell PEN per USD) from the central bank (BCRP). Use when you need the official PEN/USD exchange rate for Peru. - GET /mx/indicadores — $0.005 — Mexico's official dollar rates from Banco de México: the FIX by determination date and the rate for paying dollar obligations today (the FIX published in the DOF the previous banking day), plus the TIIE 28-day rate. Use when you need Mexico's FIX, the exchange rate to settle a dollar obligation, or the TIIE. - GET /cl/reajuste — $0.01 — Chilean IPC adjustment calculator: official INE inflation between two months (from the index levels, matching the INE variation) to reajust any amount — the standard calculation for rents, alimony and contracts in Chile. Use when adjusting a Chilean rent, debt or alimony amount for inflation (IPC) between two months. - POST /qr — $0.002 — Generate a QR code as PNG or SVG from any text or URL (up to 2000 chars, 64-2048 px). Pairs with the PDF endpoint for payment links and labels. Use when you need a scannable QR image for a URL, payment link or label. - GET /cl/indicadores — $0.005 — Chilean economic indicators: UF, UTM, dolar observado, euro, IPC, monetary policy rate (TPM), IMACEC, copper price, unemployment rate and IVP — current or for a given date (the UF also for future dates up to the 9th of next month, as it is published in advance). Official Banco Central de Chile and INE data. Use when you need a Chilean economic indicator for today or a past date. - GET /cl/uf — $0.005 — Convert amounts between UF (Unidad de Fomento) and Chilean pesos at any past date, or a future date up to the 9th of next month (the UF is published in advance: on 11 November, 30 November already works). Essential for Chilean contracts, rents and insurance. Use when an amount is expressed in UF and you need Chilean pesos, or the reverse. - GET /cl/dias-habiles — $0.003 — Chilean business-day calculator: add N working days to a date respecting national holidays. Types: administrativo (Mon-Fri) or corrido. Use when computing a legal or administrative deadline in Chile in business days (días hábiles). - GET /cl/feriados — $0.003 — Official Chilean public holidays for 2026-2027 as structured JSON, including statutory moved holidays. Use when you need Chile's official holiday calendar (feriados) for scheduling. - POST /cl/rut — $0.002 — Validate and format a Chilean RUT (tax ID) including check digit (modulo 11). Use when a Chilean RUT is entered in a form or file and you must catch typos before saving. - POST /cl/sueldo-liquido — $0.01 — Chilean net salary calculator: gross to net with AFP, health, unemployment insurance and impuesto unico using live UF/UTM values and current legal brackets. Use when estimating a Chilean employee's take-home (líquido) pay from a gross salary. - GET /cl/honorarios — $0.002 — Chilean boleta de honorarios calculator: gross to net, or the gross to issue for a target net, with the withholding rate of each year under Ley 21.133 (15.25% in 2026, 16% in 2027, 17% from 2028), in whole pesos. Use when a Chilean freelancer or company needs the net amount of a fee receipt (boleta de honorarios) or the gross amount to issue. - GET /guia/pdf — $7.00 — PDF edition of 'Build your own x402 API' — available in Spanish, English or Portuguese (?lang=es|en|pt). A real-world walkthrough of building Toolrail: architecture, real bugs found and fixed, security checklist, discovery channels, and an honest revenue simulation. Includes a printable launch checklist. One-time purchase. Use when you want a practical guide to building and selling your own paid API with x402. - GET /cl/finiquito — $0.03 — Chilean severance settlement (finiquito) under the Código del Trabajo: years-of-service indemnity (art. 163, 90 UF cap of art. 172 with the official UF, 11-year cap), notice-in-lieu, proportional and pending vacation in calendar days (DT method), obra o faena scale, unemployment-insurance offset (Ley 19.728) and court surcharges (art. 168), each item with its article and tax treatment. Use when an agent or HR app must compute what an employee is owed when a Chilean job ends. - GET /cl/costo-empleador — $0.02 — Monthly cost of an employee for a Chilean employer: taxable pay with legal gratificación (art. 50, 4.75 minimum-wage cap) and overtime (art. 32, 42-hour week), plus every employer contribution with its UF ceiling: Ley 21.735 (3.5% from Aug-2026, SIS included), unemployment insurance, Ley 16.744 accident insurance, SANNA and the domestic-worker indemnity, each with its law. Use when an agent, payroll or hiring tool must price a Chilean hire or a salary offer. - GET /cl/tasa-maxima — $0.01 — Chile's official interés corriente and interés máximo convencional (CMF certificate under Ley 18.010) in force on a date since mid-2019: every operation type with both rates, how each is expressed (linear or compound, base 360), the codes the laws refer to, the validity window and the official PDF. Use when an agent must check a loan's legal interest cap, a usury limit or the interest rate a Chilean law refers to. - GET /cl/deuda — $0.03 — Update a Chilean debt between two dates with the official rates in force each day: labour debts per Código del Trabajo arts. 63 and 173 (IPC adjustment plus the maximum interest for indexed operations), or interest at the CMF's corriente or máximo convencional rate. Returns adjustment, interest by validity period, total and the certificates used. Use when an agent, lawyer, accountant or payroll app must compute what is owed on a late payment, severance or debt in Chile. - GET /ar/alquiler — $0.02 — Argentine rent adjustment schedule by ICL (BCRA, Com. A 7096), IPC (INDEC), UVA or CER: every adjustment from the contract start with index values, factor and new rent, the current rent, the next adjustment (with its value when the index is already published) and the legal regime of the signing date (Ley 27.551, Ley 27.737, DNU 70/2023). Use when an agent, landlord, tenant or real-estate app must update an Argentine lease. - GET /historial — $0.01 — Official time series between two dates (up to 5 years) as JSON or CSV, with min, max and change: Chile's UF, UTM, observed dollar, euro and policy rate (Banco Central de Chile) and Argentina's ICL, UVA, CER (BCRA) and national CPI (INDEC). Use when an agent, accountant or lawyer needs the value on past dates or a whole period in one call instead of hundreds of single-date lookups. - POST /alertas — $0.05 — Create a change alert: an HMAC-SHA256-signed webhook to your HTTPS URL whenever an official series publishes a new value (UF, UTM, dollar, euro, policy rate and CPI for Chile; ICL, UVA, CER and CPI for Argentina). One payment covers every delivery for 365 days, with documented retries (1, 5, 30, 120 and 360 minutes) and a stable event id for de-duplication. Use when an agent or app must react to a new official value without polling. ## Free endpoints - GET / — JSON catalog (or human landing page for browsers) - GET /health — liveness - GET /pdf/templates — PDF template schemas with examples - GET /openapi.json — OpenAPI 3.1 description - GET /skill.md — agent-readable setup instructions - GET /.well-known/agent-card.json — A2A v1.0 card for free catalog discovery - GET /.well-known/agent-catalog.json — operator-maintained catalog of all paid endpoints and prices - POST /a2a — A2A JSON-RPC catalog search and payment guidance (does not execute paid calls) ## Example (no payment yet — returns 402 with payment requirements) curl https://toolrail.dev/fx/convert?from=USD&to=EUR&amount=100