{"uid":"cap_xm1SXxSZ5pYRpyi5CNhm-","slug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-544ae7e3","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://domain-osint.agentdiet.dev/v1/repair)","url":"https://domain-osint.agentdiet.dev/v1/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_5RGEXPluQ1rml2pqig7x8","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"domain-osint.agentdiet.dev","brandSlug":"domain-osint-agentdiet-dev-mpp","brandBaseUrl":"https://domain-osint.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Deterministically repairs malformed, truncated, or markdown-wrapped LLM JSON outputs so multi-agent pipelines can safely continue processing without crashes.","exampleAgentPrompt":"This JSON from the LLM response is malformed — it has trailing commas and is wrapped in markdown fences. Can you repair it so it's valid JSON I can actually use? Here it is: ```json {\"name\": \"Alice\", \"score\": 42, } ```","exampleUseCases":[{"title":"Fix crashed agent pipeline JSON","prompt":"The JSON coming back from our summarization agent keeps breaking the next step in the pipeline — it has trailing commas and sometimes gets cut off mid-string. Can you repair this malformed output so it's valid and the pipeline can continue?"},{"title":"Strip markdown fences from LLM response","prompt":"My LLM is returning JSON wrapped in triple backticks with a json language tag, and my downstream parser is choking on it. Can you clean it up and give me just the raw valid JSON?"},{"title":"Repair single-quoted JSON from model output","prompt":"I got this JSON back from a model but it's using single quotes instead of double quotes everywhere, so it won't parse. Can you fix it into proper valid JSON for me?"}],"resultDescription":"A repaired, valid JSON object derived from the submitted malformed input. The response contains the corrected JSON with issues like trailing commas, markdown fences, single quotes, and truncation resolved deterministically.","failureModes":["Input is so severely truncated or corrupted that no deterministic repair is possible — returns an error or partial result","Input is not JSON-like at all (e.g. plain prose) — repair may fail or produce unexpected output","Very large or deeply nested malformed JSON may hit query string length limits due to the GET method","Ambiguous repairs where multiple valid interpretations exist may produce unexpected canonical form"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic JSON repair in a multi-agent or LLM pipeline where outputs frequently contain trailing commas, markdown fences, single quotes, or truncation artifacts. Prefer this over writing custom repair logic when you need a reliable, pay-per-call microservice that handles the most common LLM JSON failure modes without maintaining your own parser.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:24:28.257Z","isFirstParty":false,"canonicalSlug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-544ae7e3"}