{"openapi":"3.1.0","info":{"title":"Retry Budget Guard","version":"1.0.0","description":"The most expensive cloud bills often come from unbounded retries, and a retry limit that resets on restart is an unlimited spending plan. $0.002 per call, USDC via x402 or MPP. Calculates projected retry cost from unit cost, max attempts, and backoff, and keeps a budget in this service (not in the agent) so a restart or replan cannot mint a fresh budget. An empty call returns a calculator demo for 20 unbounded retries. Docs: https://retry-budget-guard.fmf-x402.workers.dev/docs — copy-paste examples for the mppx CLI, curl, the TypeScript SDK (mppx) and the Python SDK (pympp), plus an MCP config. Machine-readable: https://retry-budget-guard.fmf-x402.workers.dev/llms.txt and https://retry-budget-guard.fmf-x402.workers.dev/openapi.json. MCP (Streamable HTTP): https://retry-budget-guard.fmf-x402.workers.dev/mcp. Fleet of sister services: https://mpp-docs.fmf-x402.workers.dev, https://mpp-agent-data.fmf-x402.workers.dev, https://mpp-tools.fmf-x402.workers.dev, https://mpp-ai.fmf-x402.workers.dev, https://mpp-browser.fmf-x402.workers.dev, https://mpp-research.fmf-x402.workers.dev, https://mpp-chain.fmf-x402.workers.dev, https://mpp-stt.fmf-x402.workers.dev, https://mpp-compat.fmf-x402.workers.dev, https://mpp-domain.fmf-x402.workers.dev, https://mpp-utils.fmf-x402.workers.dev, https://mtg-sim.fmf-x402.workers.dev, https://controlplane-x402.fmf-x402.workers.dev, https://pokemon-tcg-sim.fmf-x402.workers.dev, https://yugioh-sim.fmf-x402.workers.dev, https://mpp-cryptotax.fmf-x402.workers.dev, https://mpp-biz.fmf-x402.workers.dev, https://lorcana-sim.fmf-x402.workers.dev, https://onepiece-sim.fmf-x402.workers.dev, https://hearthstone-sim.fmf-x402.workers.dev, https://chess-sim.fmf-x402.workers.dev, https://dota2-sim.fmf-x402.workers.dev, https://cs2-sim.fmf-x402.workers.dev. Operated by FMF Tools (fmf-tools@agentmail.to). Pay-per-call only; no API key and no account. Invalid input or an upstream failure returns 402 and is not charged.","x-guidance":"POST JSON (or GET with query params) to any /mpp/* route and pay the 402 challenge with MPP on Tempo (USDC.e or pathUSD) or x402 v2 on Base (USDC). Bad input or an upstream failure returns 402 with an error and you are not charged. If you omit a documented input param, the route uses the default listed in this document and in the 402 challenge.","contact":{"name":"FMF Tools","url":"https://retry-budget-guard.fmf-x402.workers.dev/docs","email":"fmf-tools@agentmail.to"},"x-docs":"https://retry-budget-guard.fmf-x402.workers.dev/docs","x-mcp":"https://retry-budget-guard.fmf-x402.workers.dev/mcp","x-llms":"https://retry-budget-guard.fmf-x402.workers.dev/llms.txt","x-fmf-id":"retry-budget-guard","x-related":{"name":"FMF Recipes","what":"Which paid API to call for any agent task, ranked by receipt-verified agent outcomes","find":"https://agent-recipes.fmf-x402.workers.dev/mpp/recipes/find","price_usd":0.003,"empty_call_ok":true,"mcp":"https://agent-recipes.fmf-x402.workers.dev/mcp","llms":"https://agent-recipes.fmf-x402.workers.dev/llms.txt"},"x-also":{"name":"FMF Tools Etsy Movers","what":"Today's top 20 Etsy shops by sales acceleration from the FMF Tools Etsy Pulse panel (no input)","find":"https://etsy-movers.fmf-x402.workers.dev/etsy/movers/today","price_usd":0.01,"empty_call_ok":true,"mcp":"https://etsy-movers.fmf-x402.workers.dev/mcp","llms":"https://etsy-movers.fmf-x402.workers.dev/llms.txt"}},"servers":[{"url":"https://retry-budget-guard.fmf-x402.workers.dev"}],"paths":{"/v1/retry-budget":{"post":{"operationId":"_v1_retry_budget","summary":"Retry Budget Guard","description":"The most expensive cloud bills often come from unbounded retries, and a retry limit that resets on restart is an unlimited spending plan. $0.002 per call, USDC via x402 or MPP. Calculates projected retry cost from unit cost, max attempts, and backoff, and keeps a budget in this service (not in the agent) so a restart or replan cannot mint a fresh budget. An empty call returns a calculator demo for 20 unbounded retries.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","description":"calculate (default) or consume","default":"calculate"},"unit_cost":{"type":"number","description":"Cost of one attempt, in USD (default: 0.01)","default":0.01},"max_attempts":{"type":"number","description":"max_attempts (default: 20)","default":20},"backoff_seconds":{"type":"number","description":"backoff_seconds"},"concurrency":{"type":"number","description":"concurrency"},"namespace":{"type":"string","description":"Required for consume: budget lives here, not in the agent"},"budget_id":{"type":"string","description":"budget_id"}}},"example":{"action":"calculate","unit_cost":0.01,"max_attempts":20,"backoff_seconds":2}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}}},"externalDocs":{"description":"Copy-paste examples (CLI, curl, TypeScript, Python, MCP)","url":"https://retry-budget-guard.fmf-x402.workers.dev/docs"},"components":{"securitySchemes":{"Payment":{"type":"http","scheme":"Payment","description":"MPP Payment credential on Tempo (USDC.e or pathUSD). Clients such as mppx handle the 402 challenge automatically. See https://mpp.dev/sdk"}}},"tags":[{"name":"paid","description":"Pay-per-call MPP routes. Unpaid requests receive 402. Invalid input is not charged."},{"name":"discovery","description":"Free discovery surfaces: /docs, /llms.txt, /openapi.json, /mcp, /health, /stats."}]}