{"uid":"cap_iBq53rajPTd-GT5vKfVW2","slug":"github-audit-agentdiet-dev-deterministic-a2a-broken-json-repair-2a2a5693","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://github-audit.agentdiet.dev/v1/schema-repair)","url":"https://github-audit.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_H1HUQKY9TgsRSGU2q_d-T","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"github-audit.agentdiet.dev","brandSlug":"github-audit-agentdiet-dev-mpp","brandBaseUrl":"https://github-audit.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":"My LLM just returned this broken JSON with trailing commas and markdown code fences — can you repair it so I can parse it properly: ```{\"name\": \"Alice\", \"score\": 42,}```","exampleUseCases":[{"title":"Fixing LLM output in agent pipeline","prompt":"The language model in my pipeline returned JSON wrapped in triple backticks with a trailing comma — clean it up and give me valid parseable JSON: ```json\n{\"status\": \"ok\", \"items\": [1, 2, 3,]}\n```"},{"title":"Repairing truncated API response","prompt":"My agent received a truncated JSON string that got cut off mid-value: '{\"user\": \"bob\", \"role\": \"adm' — can you repair this and give me back valid JSON?"},{"title":"Sanitizing single-quoted JSON from chatbot","prompt":"A chatbot returned JSON using single quotes instead of double quotes like {'key': 'value', 'count': 5} — fix it so I can pass it to my downstream service."}],"resultDescription":"Returns a repaired, valid JSON object parsed from the originally malformed input string, with common LLM output artifacts (trailing commas, markdown fences, single quotes, truncations) corrected deterministically.","failureModes":["Input JSON is too severely malformed to repair deterministically — returns error or partial result","raw_json parameter missing or empty — returns 400 validation error","Input is not JSON-like at all (plain text, HTML) — repair may fail or return unexpected structure","Payment failure via x402 — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need deterministic, rule-based JSON repair rather than AI-based inference — particularly in multi-agent pipelines where LLM outputs frequently contain markdown fences, trailing commas, or single quotes and you need a reliable, cheap, low-latency fix before passing data downstream.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:22:03.405Z","isFirstParty":false,"canonicalSlug":"github-audit-agentdiet-dev-deterministic-a2a-broken-json-repair-cc0bdacf"}