{"uid":"cap_9Zqfd6eEpjTgn9n_-MCmb","slug":"json-repair-api-via-agentdiet-mcp-gateway-d200815b","name":"JSON Repair API via AgentDiet MCP Gateway","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.","url":"https://mcp-gateway.agentdiet.dev/v1/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","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"raw_json":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_betdOYIvJYRuZTRlZ4egh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Accepts malformed or broken JSON strings and returns a repaired, valid JSON object with compression metadata.","exampleAgentPrompt":"Can you fix this broken JSON for me? It has some syntax errors and missing brackets — just pass the raw string and give me back a clean, valid JSON object.","exampleUseCases":[{"title":"Fixing LLM-generated malformed JSON","prompt":"The AI returned some JSON but it's broken — there are missing commas and unclosed brackets. Can you repair it and give me valid JSON I can actually parse?"},{"title":"Recovering corrupted API response","prompt":"I got a truncated JSON response from an external API and my parser is failing. Can you take this raw string and fix it so it's valid JSON again?"},{"title":"Cleaning scraped JSON data","prompt":"I scraped some JSON data from a webpage but it has formatting issues and invalid characters. Can you repair and normalize it into a clean JSON object?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the repaired JSON, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct achieved during repair.","failureModes":["Input JSON too malformed to repair — returns error status","Missing required 'input' or 'method' fields in request body — returns schema validation error","Empty or null raw_json query parameter — may return empty data object","Network timeout if input is extremely large","Payment failure via x402 — returns 402 if USDC payment on Base is not settled"],"whenToPreferThis":"Choose this endpoint when you need a paid, deterministic JSON repair service accessible via x402/USDC micropayment on Base, especially in agent pipelines where LLM outputs or API responses frequently produce malformed JSON that needs automated fixing without manual intervention.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:22.410Z","isFirstParty":false,"canonicalSlug":"json-repair-api-via-agentdiet-mcp-gateway-d200815b"}