{"uid":"cap_a-nk_T0o5TuGaE-0b9H2Q","slug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-f73be1ab","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://email-verify.agentdiet.dev/v1/repair)","url":"https://email-verify.agentdiet.dev/v1/repair?utm_source=zero.xyz","method":"POST","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_h2LzH1HfELhQT0UcBk4wj","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"email-verify.agentdiet.dev","brandSlug":"email-verify-agentdiet-dev-mpp","brandBaseUrl":"https://email-verify.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 string from the LLM has trailing commas and markdown fences and is crashing my pipeline — can you repair it and give me back valid JSON: ```{\"name\": \"Alice\", \"age\": 30,}```","exampleUseCases":[{"title":"Fix LLM output before downstream tool","prompt":"The language model just returned this malformed JSON with single quotes and a trailing comma that's breaking my next step — please repair it into valid JSON: {'user': 'bob', 'score': 42,}"},{"title":"Strip markdown fences from agent response","prompt":"My agent returned JSON wrapped in markdown code fences and it's crashing my parser — can you clean it up and return just the valid JSON object from this string: ```json\n{\"status\": \"ok\", \"value\": 99}\n```"},{"title":"Recover truncated JSON from incomplete generation","prompt":"The model cut off mid-generation and I got this truncated JSON that's missing closing brackets — can you repair it so I can keep my pipeline running: {\"items\": [{\"id\": 1, \"name\": \"widget\""}],"resultDescription":"A JSON object containing the repaired, syntactically valid JSON parsed from the malformed input. The response restores correct structure by fixing trailing commas, removing markdown fences, converting single quotes to double quotes, and closing truncated structures.","failureModes":["Input is so severely malformed that deterministic repair is impossible — returns error indicating unrecoverable JSON","Empty raw_json string — validation error returned immediately","Input is not JSON at all (e.g. plain prose) — may return error or best-effort empty object","Network timeout on upstream service","Payment required (HTTP 402) if x402 payment header is missing or insufficient"],"whenToPreferThis":"Choose this endpoint when you need deterministic, rule-based JSON repair of LLM outputs — especially in multi-agent pipelines where reliability matters and you cannot tolerate crashes from malformed JSON. Prefer this over prompt-based retry loops when you need fast, cheap, idempotent correction of common LLM JSON artifacts like trailing commas, markdown fences, and single quotes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T12:40:06.894Z","isFirstParty":false,"canonicalSlug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-fee515ab"}