{"uid":"cap_uBO_tGN-o1Xw81uJ9TOqs","slug":"cve-intel-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-17ccd1f1","name":"Deterministic A2A Broken-JSON Repair & Schema Validator","description":"Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash. (Live x402 v2, IETF MPP & MCP endpoint at https://cve-intel.agentdiet.dev/v1/schema-repair)","url":"https://cve-intel.agentdiet.dev/v1/schema-repair?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["raw_json"],"properties":{"raw_json":{"type":"string","minLength":1,"description":"Malformed, truncated, or markdown-wrapped JSON string to deterministically repair"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.002","displayCostAsset":"USD","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":"mpp","network":"tempo","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_S4K51zMHRE0biCSSPxEv2","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"cve-intel.agentdiet.dev","brandSlug":"cve-intel-agentdiet-dev-mpp","brandBaseUrl":"https://cve-intel.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) so multi-agent pipelines never crash","exampleAgentPrompt":"This JSON came back from the LLM with trailing commas, markdown fences, and single quotes — can you run it through the JSON repair service and give me back clean, valid JSON? Here's the raw string: ```{'name': 'Alice', 'age': 30,}```","exampleUseCases":[{"title":"Fix LLM output before pipeline step","prompt":"The model just returned this JSON blob with trailing commas and it's breaking the next step in my pipeline — can you repair it so it's valid? Here it is: {\"name\": \"Alice\", \"score\": 0.95,}"},{"title":"Strip markdown fences from agent response","prompt":"My AI agent wrapped its JSON response in triple backtick markdown fences and now I can't parse it — can you clean that up and return proper JSON?"},{"title":"Repair single-quoted JSON from chatbot","prompt":"This chatbot output used single quotes instead of double quotes in the JSON and it's causing a parse error — fix it so it's valid JSON I can use: {'status': 'ok', 'result': 'done'}"}],"resultDescription":"Returns a repaired, valid JSON object with syntax errors corrected — trailing commas removed, markdown fences stripped, single quotes converted to double quotes, and truncated structures closed — ready for downstream consumption in agent pipelines.","failureModes":["Input JSON is so severely malformed that deterministic repair is not possible — returns error","Empty or null raw_json parameter — returns validation error","Input is not JSON at all (e.g. plain text or binary) — may return unparseable result","Payment not processed (HTTP 402) — endpoint requires x402 micropayment before processing"],"whenToPreferThis":"Choose this endpoint when an LLM or AI agent in your pipeline is returning syntactically invalid JSON that breaks downstream parsers — especially when you need a deterministic (non-AI) fix for issues like trailing commas, markdown code fences, single quotes, or truncated objects. Prefer this over regex hacks or writing your own repair logic when reliability across edge cases matters in a multi-agent workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:51:29.036Z","isFirstParty":false,"canonicalSlug":"cve-intel-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-6a1c8471"}