{"uid":"cap_BomNrkJnk-aF1Kf_BsA--","slug":"agent-data-tools-json-repair-2c2be246","name":"Agent Data Tools: JSON Repair","description":"566 pay-per-call tools for AI agents over HTTP or MCP, from $0.002 a call, most at $0.01. Every caller gets 25 free calls; then pay per call in USDC via x402 (Base, Polygon, Arbitrum, Solana) or by card with prepaid credits from /credits. No account needed; failed calls are never charged; per-tool reliability is public at /status. Crypto: token prices and wallet portfolios from Uniswap v3, chain reads on Base, Ethereum, Arbitrum, Optimism and Polygon, OFAC sanctions screening. Web: Read public static documentation, pages, PDFs and RSS feeds as clean text, plus link previews and sitemaps. Business: company profiles, domain and email checks. Also Bitcoin, FX, weather, holidays, geocoding, AI text, and JSON, date and validation utilities.","url":"https://agent-data-tools.revmesh2074.workers.dev/json/repair?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","examples":["```json\n{name: 'Ada', tags: ['x',],}\n```"],"description":"The broken JSON text"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"valid":{"type":"boolean"},"repaired":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"valid":true,"repaired":"{\"name\":\"Ada\",\"tags\":[\"x\"]}"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_surqtCHBiARpkVYsfO5ss","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Attempts to parse and repair malformed or broken JSON text, returning the corrected JSON string and a validity flag","exampleAgentPrompt":"Can you repair this broken JSON for me? The text is: {\"name\":\"Ada\",\"tags\":[\"x\" — it's missing the closing brackets and I need it fixed.","exampleUseCases":[{"title":"Fix LLM-generated malformed JSON","prompt":"An LLM returned this JSON but it's broken — can you repair it so I can parse it? Here it is: {\"result\":\"ok\",\"items\":[{\"id\":1,\"name\":\"alpha\"},{\"id\":2,\"name\":\"beta\"} — it seems to be cut off."},{"title":"Recover corrupted config file","prompt":"My config file has some JSON corruption — missing a closing brace and some unquoted keys. Can you repair this JSON text: {name: \"myapp\", version: \"1.0\", settings: {debug: true}?"},{"title":"Validate and clean API response","prompt":"I got this JSON back from an external API but it won't parse — can you check if it's valid and fix it if not? The text is: {\"status\":\"success\",\"data\":{\"count\":42,\"items\":[1,2,3}}."}],"resultDescription":"Returns a JSON object with a boolean 'valid' field indicating whether the input was valid or needed repair, and a 'repaired' field containing the corrected JSON string.","failureModes":["JSON is too severely corrupted to be automatically repaired","Input is not JSON at all (plain text, XML, YAML) and cannot be meaningfully repaired","Very large JSON payloads may exceed query parameter length limits","Missing required 'text' query parameter returns an error"],"whenToPreferThis":"Use this endpoint when you have a JSON string that fails to parse due to syntax errors, truncation, missing brackets, unquoted keys, or other common formatting issues and you need a fast, cheap ($0.001 USDC), no-account-required fix. Prefer this over manual regex fixes or LLM prompting for JSON repair when cost and reliability matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:13:05.419Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-json-repair-2c2be246"}