{"uid":"cap_ZDQY7fpWz2Q7bwvoFj6QO","slug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-0fa9e157","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://domain-osint.agentdiet.dev/v1/schema-repair)","url":"https://domain-osint.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_OTOViMHhd9l5M-1bkO4xr","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"domain-osint.agentdiet.dev","brandSlug":"domain-osint-agentdiet-dev-mpp","brandBaseUrl":"https://domain-osint.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 came back from the LLM with trailing commas and markdown fences and it won't parse — can you fix it and give me valid JSON back? Here it is: ```{\"name\": \"Alice\", \"age\": 30,}```","exampleUseCases":[{"title":"Fixing LLM output in agentic pipeline","prompt":"The language model just returned this JSON with a trailing comma and it's crashing my pipeline — can you repair it so it parses cleanly? Here's the raw output: {\"status\": \"ok\", \"items\": [1, 2, 3,]}"},{"title":"Stripping markdown fences from model response","prompt":"My model wrapped its JSON in triple-backtick markdown fences and now my parser is failing. Can you strip the fences and return just the valid JSON object? The raw text is: ```json\n{\"result\": \"success\", \"score\": 0.95}\n```"},{"title":"Repairing single-quoted JSON from legacy agent","prompt":"I have a legacy agent that outputs JSON with single quotes instead of double quotes and it won't validate. Can you convert this to proper JSON? Here's the string: {'user': 'bob', 'active': true}"}],"resultDescription":"A repaired, valid JSON object with all syntax errors corrected — trailing commas removed, markdown fences stripped, single quotes converted to double quotes, and truncations resolved — ready to parse without errors","failureModes":["Input JSON is so corrupted it cannot be deterministically repaired — returns error indicating unrecoverable malformation","Input string is empty or too short to infer valid JSON structure","Ambiguous truncation with multiple plausible completions — service may pick one interpretation or return an error","Payment required error (HTTP 402) if x402 payment header is missing or insufficient"],"whenToPreferThis":"Choose this endpoint when you have LLM-generated or agent-generated JSON that fails to parse due to common syntax errors like trailing commas, markdown code fences, single quotes, or truncation. Ideal for multi-agent pipelines where downstream tools require strictly valid JSON and you need a deterministic, low-latency fix rather than asking the LLM to re-generate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T06:33:22.849Z","isFirstParty":false,"canonicalSlug":"domain-osint-agentdiet-dev-deterministic-a2a-broken-json-repair-544ae7e3"}