{"uid":"cap_ZFGcQGF7tyT7AAB2NJw_Q","slug":"company-enrich-agentdiet-dev-deterministic-a2a-broken-json-repair-f99d733d","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://company-enrich.agentdiet.dev/v1/schema-repair)","url":"https://company-enrich.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_W0ZCtdQ0151UZELuw68kq","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"company-enrich.agentdiet.dev","brandSlug":"company-enrich-agentdiet-dev-mpp","brandBaseUrl":"https://company-enrich.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 came back from the LLM with trailing commas and markdown fences and it's crashing my pipeline — can you repair it and give me back a valid JSON object? Here's the raw string: ```{\"name\": \"Acme\", \"revenue\": 5000000,}```","exampleUseCases":[{"title":"Fix LLM output crashing agent pipeline","prompt":"The language model returned this JSON with a trailing comma and it's breaking my workflow — please repair it so I can continue: {\"company\": \"OpenAI\", \"founded\": 2015,}"},{"title":"Strip markdown fences from JSON response","prompt":"My AI assistant wrapped its JSON response in triple-backtick markdown fences and now I can't parse it — can you clean it up and return valid JSON? Here's what it returned: ```json\n{\"score\": 92, \"label\": \"positive\"}\n```"},{"title":"Repair single-quoted JSON from scraper","prompt":"I got this JSON from a scraper but it uses single quotes instead of double quotes and won't parse — fix it for me: {'user': 'alice', 'active': true}"}],"resultDescription":"A repaired, valid JSON object with all common LLM output defects corrected — trailing commas removed, markdown fences stripped, single quotes converted to double quotes, and truncated structures closed where possible.","failureModes":["Input JSON is so severely malformed that deterministic repair is impossible — returns error indicating unrecoverable structure","Empty or null raw_json input returns a 400 validation error","Extremely large JSON strings may time out or hit size limits","JSON with ambiguous structure (e.g. deeply nested truncation) may be repaired incorrectly without schema context"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic (non-ML) JSON repair for LLM outputs in automated pipelines, especially when reliability and reproducibility matter more than heuristic guessing. Best suited for common LLM syntax errors like trailing commas, markdown wrappers, and single quotes rather than deeply corrupted or semantically invalid JSON.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:45:16.325Z","isFirstParty":false,"canonicalSlug":"company-enrich-agentdiet-dev-deterministic-a2a-broken-json-repair-7510e5c1"}