{"uid":"cap_lcJUOVf6PMcBnkYjeQVCl","slug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-ba2c982e","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/schema-repair)","url":"https://email-verify.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_Xl4jOSQG917fgKw5byC03","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 from the LLM is broken — it has trailing commas and markdown fences around it. Can you fix it so it's valid JSON I can actually use? Here it is: ```json {\"name\": \"Alice\", \"score\": 42, } ```","exampleUseCases":[{"title":"Fix LLM pipeline broken output","prompt":"The language model returned JSON with trailing commas and a markdown code block wrapper — can you repair it into valid JSON so the next step in my pipeline doesn't crash? Here's the broken output: ```json {\"user\": \"bob\", \"active\": true, } ```"},{"title":"Repair single-quoted JSON from agent","prompt":"My agent produced this JSON using single quotes instead of double quotes: {'name': 'Carol', 'age': 30} — can you fix it into proper valid JSON?"},{"title":"Recover truncated JSON response","prompt":"The model got cut off mid-response and gave me this truncated JSON: {\"items\": [\"apple\", \"banana\" — can you repair it into something valid and complete?"}],"resultDescription":"A JSON object containing the repaired, syntactically valid version of the input, suitable for programmatic consumption downstream in a multi-agent pipeline.","failureModes":["Input JSON is so severely malformed it cannot be deterministically recovered — returns error","raw_json parameter missing or empty — returns 400 validation error","JSON contains ambiguous structures that cannot be safely inferred — returns partial repair with warning","Network or payment (x402) failure — returns 402 or 5xx"],"whenToPreferThis":"Choose this endpoint when an LLM or agent in your pipeline has produced malformed, truncated, or markdown-wrapped JSON that needs deterministic, rule-based repair before downstream processing. Ideal for multi-agent orchestration layers where reliability matters more than heuristic guessing. Prefer over ad-hoc string manipulation when you need consistent handling of trailing commas, single quotes, and markdown fences.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:21:39.530Z","isFirstParty":false,"canonicalSlug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-fee515ab"}