{"uid":"cap_MEUKN-N_0aFLJ0XMaMc1-","slug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-f84258f5","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":"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_awS7cJ-v4jFxFhpvp7t4V","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) deterministically so multi-agent pipelines never crash.","exampleAgentPrompt":"This JSON string came back from an LLM and it's broken — it has trailing commas, single quotes, and a markdown code fence wrapping it. Can you repair it into valid JSON so my pipeline can continue?","exampleUseCases":[{"title":"Multi-agent pipeline crash prevention","prompt":"My orchestration agent just got a response from a sub-agent and the JSON is malformed — it has a trailing comma and it's wrapped in triple backticks. Fix it so the next step in my pipeline can parse it."},{"title":"LLM output normalization for structured tasks","prompt":"The model returned JSON with single quotes instead of double quotes and a missing closing brace. Can you repair this raw string into valid, parseable JSON?"},{"title":"Automated data extraction cleanup","prompt":"I'm extracting structured data from an LLM and the output is truncated mid-object. Here's the raw string — repair it deterministically so I can feed it into my downstream schema validator."}],"resultDescription":"Returns a JSON object containing the repaired, valid JSON — free of trailing commas, markdown fences, single quotes, and truncation artifacts — suitable for direct parsing and use in downstream pipeline steps.","failureModes":["JSON is so severely malformed it cannot be deterministically repaired — returns error indicating unrecoverable input","Input is empty or does not contain any JSON-like structure — returns validation error","Ambiguous truncation where multiple valid completions exist — may return best-effort repair with caveat","Network or payment (x402) failure — endpoint returns 402 or 5xx"],"whenToPreferThis":"Choose this endpoint when you need deterministic, rule-based JSON repair rather than LLM-based re-generation — particularly in high-throughput multi-agent pipelines where consistency and auditability matter. Ideal when the malformed JSON comes from LLM outputs with known failure patterns (trailing commas, markdown fences, single quotes, truncation) and you need a cheap ($0.002/call), fast, idempotent fix without re-querying a large model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T01:14:57.127Z","isFirstParty":false,"canonicalSlug":"email-verify-agentdiet-dev-deterministic-a2a-broken-json-repair-fee515ab"}