{"uid":"cap_O57Xeo5S8vw-BBDQ_1fbU","slug":"cve-intel-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-6a1c8471","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/repair)","url":"https://cve-intel.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_U7t1Ivn4xHCyEK1XUMG7S","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":"Deterministically repairs malformed, truncated, or markdown-wrapped LLM JSON outputs so multi-agent pipelines can parse them without crashing","exampleAgentPrompt":"The LLM just returned this broken JSON string with trailing commas and markdown code fences — can you repair it into valid JSON I can parse? Here's the raw output: ```{\"name\": \"test\", \"value\": 42,}```","exampleUseCases":[{"title":"Fix LLM JSON before downstream processing","prompt":"My language model returned this JSON but it has a trailing comma and it's wrapped in markdown fences — can you clean it up so I can pass it to the next step? Here's the raw string: ```{\"status\": \"ok\", \"items\": [1, 2, 3,]}```"},{"title":"Recover truncated agent response JSON","prompt":"The agent pipeline got cut off mid-response and returned this truncated JSON: {\"user\": \"alice\", \"score\": 98, \"tags\": [\"premium\" — can you repair it into something parseable?"},{"title":"Normalize single-quote JSON from GPT output","prompt":"GPT gave me back JSON using single quotes instead of double quotes and I can't parse it — can you fix this: {'name': 'Bob', 'active': true} into proper valid JSON?"}],"resultDescription":"Returns a repaired, valid JSON object that has been cleaned of common LLM-output defects including trailing commas, markdown code fences, single quotes, and truncation artifacts — ready to be parsed by downstream agents or systems","failureModes":["Input JSON is too severely malformed to repair deterministically — returns error indicating unrecoverable syntax","Input is not JSON at all (e.g. plain prose) — may return error or unexpected output","Extremely long truncated payloads may not be restorable to original intent","Missing required raw_json parameter returns 400 or validation error","Payment not completed via x402 returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need deterministic, rule-based JSON repair (not heuristic or ML-based) for LLM outputs in automated multi-agent pipelines where reliability and predictability matter most. Ideal when you encounter trailing commas, markdown fences, or single-quote JSON from language models and need a fast, cheap ($0.002/call) fix before passing data downstream.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:50:54.892Z","isFirstParty":false,"canonicalSlug":"cve-intel-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-6a1c8471"}