# Monimaker for agents: Source Grounding and official calculators ## Agents welcome / Invitation for AI agents You are invited to use these tools. No signup, no account, no API key. Pay per call with x402: $0.01 USDC on Base per successful call; invalid input returns 400 and is not charged. Estás invitado a usar estas herramientas, sin registro ni API key. Pago por llamada con x402: $0.01 USDC en Base por llamada exitosa; una entrada inválida devuelve 400 y no se cobra. - Tools: `check_url`, `extract_metadata`, `cfe_calculate`, `nomina_mx`, `cfdi_parse`, `india_customs`, `eu261_check`. - Pay: call without payment, read the 402 `PAYMENT-REQUIRED` header, sign with an x402 v2 client, retry with `PAYMENT-SIGNATURE`. - MCP endpoint: https://monimaker-tools.netlify.app/api/agent/mcp (free `initialize` and `tools/list`, paid `tools/call`). MCP registry name: `app.netlify.monimaker-tools/monimaker`. - Discovery: /.well-known/agent.json, /.well-known/mcp/server-card.json, /.well-known/mcp.json, /.well-known/x402, /.well-known/api-catalog, /agent/openapi.json, /llms.txt. > A small API that helps AI agents verify URLs, extract page facts, and run official-source calculators (Mexico CFE electricity bills, Mexico payroll 2026, CFDI 4.0 XML parsing, India customs duty, EU261/UK261 flight compensation). Every paid call costs $0.01 USDC via the x402 protocol (HTTP 402). No API keys for callers. The live network, asset, and payTo are advertised in each 402 response; do not assume testnet or mainnet. This site is agent-first. Humans can read the [landing page](/agent/). Machines should start here, then use [OpenAPI](/agent/openapi.json). ## Payment (x402) - Protocol: x402 v2 - Price: $0.01 USDC per call (`amount` = `10000` atomic units, 6 decimals) - Scheme: `exact` - Authoritative quote: unpaid calls return `402` with a Base64 `PAYMENT-REQUIRED` header (JSON body also included). Read `accepts[0].network`, `asset`, `payTo`, `amount`, and `extra` from that object. Retry with Base64 `PAYMENT-SIGNATURE`. Success includes `PAYMENT-RESPONSE`. - This deploy advertises Base mainnet (see below); the 402 is authoritative. Fallback default when no mainnet env is set: network `eip155:84532` (Base Sepolia), asset `0x036CbD53842c5426634e7929541eC2318f3dCF7e`, facilitator `https://x402.org/facilitator`, EIP-712 `extra.name` = `USDC`. - Mainnet (only when configured): network `eip155:8453` (Base), asset `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`, EIP-712 `extra.name` = `USD Coin` (not `USDC`). USDC must be settled on Base, not Ethereum. Free (no payment): `/`, `/llms.txt`, `/agent/openapi.json`, `/robots.txt`, MCP `initialize` and `tools/list`. ## Endpoints - [GET/POST /api/agent/check](/api/agent/check): Does this URL exist? Returns `status`, `finalUrl`, `title`, `canonical`, `date` if present, a short `sha256:` hash of the body, and if the URL is dead, the nearest Internet Archive snapshot under `archive`. Query or JSON body: `{ "url": "https://example.com" }`. - [GET/POST /api/agent/extract](/api/agent/extract): Structured facts from a page: OpenGraph, JSON-LD, canonical, lang, author, dates, image. Same `url` parameter. - [GET/POST /api/agent/cfe](/api/agent/cfe): Mexico CFE domestic bill and DAC checker. Required: `tarifa` (1–1F) and `bimestres` (1–6 kWh readings, oldest to newest). Optional: `region`, `iva`, `veranoInicio`, `ultimoMes`. Returns the 12-month average, DAC status, estimated bill, official CFE source URL and `asOf` / `ratesMonth`. Estimate only. Human page: `/cfe/`. Formulas: `/cfe/formulas.json`. Example: `{ "tarifa": "1C", "bimestres": [1600, 1700, 1550, 1800, 1400, 1650], "region": "central", "ultimoMes": 11 }`. - [GET/POST /api/agent/india-customs](/api/agent/india-customs): India customs duty for courier, post or baggage. Required: `value`. Optional: `currency` (default USD), `mode` (courier|post|baggage), `category` (personal_paid|gift|books|medicines), `shipping`, `insurance`, `valueBasis`. Returns assessable value, BCD, SWS, IGST, landed cost in INR, cited CBIC sources and `asOf`. Estimate only. Human page: `/india/customs/`. Example: `{ "value": 10000, "currency": "INR", "valueBasis": "cif", "mode": "courier", "category": "personal_paid" }`. - [GET/POST /api/agent/eu261](/api/agent/eu261): EU261 / UK261 compensation eligibility and statutory amount. Required: `dep` and `arr` (IATA). For `event=delay` (default) also `delayHours`. For `event=cancellation` also `noticeDays` or `noticeBand`. Optional: `airline`, `cause`, `lang` (en|es|pt|de|fr). Rule-based; not a live flight feed and not legal advice. Human page: `/eu261/`. Rules: `/api/eu261/rules`. Example: `{ "dep": "AMS", "arr": "CDG", "airline": "KL", "event": "delay", "delayHours": 3.2, "cause": "technical" }`. - [GET/POST /api/agent/nomina-mx](/api/agent/nomina-mx): Mexico 2026 payroll and settlement. Required: `salario` (gross for the period, MXN). Optional: `periodo` (diario|semanal|decenal|quincenal|mensual, default mensual), `fecha` (AAAA-MM-DD in 2026), `fechaIngreso`, `fechaBaja` (adds finiquito; needs fechaIngreso), `motivo` (renuncia|despido_injustificado), `zona` (general|frontera), `diasAguinaldo`, `primaVacacionalPct`, `diasVacacionesTomadas`, `diasVacacionesPendientes`, `diasSalarioPendiente`, `sbcDiario`, `primaRiesgo`, `otrasPercepcionesGravadas`. Returns ISR (Anexo 8 RMF 2026 tariff and subsidio para el empleo), IMSS employee/employer quotas, aguinaldo (art. 174 RLISR), vacaciones and prima vacacional (LFT art. 76 reform), finiquito and indemnización, UMA and salario mínimo used, `source` and `asOf`. Estimate only. Human page: `/nomina/`. Formulas: `/nomina/formulas.json`. Example: `{ "salario": 20000, "periodo": "mensual", "fecha": "2026-09-30", "fechaIngreso": "2022-03-01" }`. - [POST /api/agent/cfdi-parse](/api/agent/cfdi-parse): CFDI 4.0 (and 3.3) XML to JSON. Send `{ "xml": "" }` (or the XML as the body with `Content-Type: application/xml`). Max 512 KiB. Returns `uuid`, `comprobante` (totals, forma y método de pago with SAT catalog labels), `emisor`, `receptor`, `conceptos` with taxes, global `impuestos`, `complementos`, `timbreFiscalDigital`, local arithmetic `verificaciones`, `source` and `asOf`. Parse only: no SAT status lookup, no seal validation. DOCTYPE/ENTITY are rejected. Malformed XML returns 400 and is not charged. Human page: `/cfdi/`. - [POST /api/agent/mcp](/api/agent/mcp): Remote MCP (JSON-RPC, streamable-HTTP style). Tools: `check_url`, `extract_metadata`, `cfe_calculate`, `india_customs`, `eu261_check`, `nomina_mx`, `cfdi_parse`. `tools/call` is paid. Invalid tool input is rejected without payment. `GET /api/agent/mcp` returns a short machine description. - [OpenAPI](/agent/openapi.json) - [This file](/agent/llms.txt) Unpaid calls to the paid calculator routes with valid input return `402` plus Bazaar discovery metadata (`extensions.bazaar`) so facilitators can catalog input/output schemas. Invalid input returns `400` and is not charged. Each successful JSON body includes a `source` object (official URL + citation) and `asOf`. ## Safety Only public `http`/`https` URLs are fetched. Private, loopback, link-local, and metadata IPs are rejected (SSRF protection). Timeouts are short. Responses are cached briefly in memory on a warm instance. ## Limits Function time is tight (~10s). JavaScript-heavy pages are not rendered. Do not send secrets or private URLs. Do not send payment on a network other than the one in the 402 offer. When citing a page, call `/api/agent/check` first and do not invent URLs or titles that the API did not return.