{"uid":"cap_zMmZ3vzdxiKQbdmF8kZgg","slug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-fee515ab","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":"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_Wnt-DVkFF6g1dgL2qaJx4","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 LLM output came back as broken JSON with trailing commas and markdown code fences — can you run it through the JSON repair service and give me back a clean, parseable object? Here's the raw string: ```{\"name\": \"Alice\", \"score\": 42,}```","exampleUseCases":[{"title":"Fix LLM output before downstream agent","prompt":"The summarization agent just returned JSON with trailing commas and single quotes instead of double quotes — clean it up so I can pass it to the next step in the pipeline: {\"summary\": 'AI is transforming industries',\"confidence\": 0.87,}"},{"title":"Strip markdown fences from model response","prompt":"My model wrapped its JSON in triple backtick markdown fences again and now my parser is crashing — strip the fences and repair any other issues in this string: ```json\n{\"result\": \"success\", \"items\": [1, 2, 3,]}\n```"},{"title":"Recover truncated JSON from token limit cutoff","prompt":"The API response got cut off mid-JSON because we hit the token limit — can you repair this truncated string and return a valid JSON object? Here it is: {\"users\": [{\"id\": 1, \"name\": \"Bob\"}"}],"resultDescription":"Returns a repaired, valid JSON object that has been cleaned of common LLM output artifacts including trailing commas, markdown code fences, single-quoted keys/values, and truncation — ready to be parsed or passed downstream in an agent pipeline","failureModes":["JSON is too severely malformed or truncated to deterministically repair — returns error or best-effort partial result","Input is not JSON-like at all (plain text, HTML) — may return error or unexpected output","Extremely large raw_json strings may hit query string length limits when sent as GET parameter","Ambiguous repair cases where multiple valid completions exist — deterministic repair may choose a non-intended path"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives LLM-generated JSON that is syntactically invalid and must be repaired before downstream processing. Ideal when you need deterministic, rule-based repair (not generative re-parsing) of common artifacts like trailing commas, markdown fences, single quotes, or minor truncation. Prefer this over asking an LLM to re-parse broken JSON when you want predictable, low-cost, low-latency fixes without consuming additional LLM tokens.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:26:10.086Z","isFirstParty":false,"canonicalSlug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-fee515ab"}