{"uid":"cap_sbIk8HyEpf-eDDMXK_BAt","slug":"shopify-spy-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-cbdd11bf","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://shopify-spy.agentdiet.dev/v1/schema-repair)","url":"https://shopify-spy.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_5yR6lxPwVYH0ACYQrl2Wm","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"shopify-spy.agentdiet.dev","brandSlug":"shopify-spy-agentdiet-dev-mpp","brandBaseUrl":"https://shopify-spy.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Repairs malformed, truncated, or markdown-wrapped JSON strings (trailing commas, single quotes, fences) so multi-agent pipelines can safely parse LLM outputs without crashing.","exampleAgentPrompt":"This JSON came back from the LLM with trailing commas and markdown fences and it's crashing my pipeline — can you repair it so it's valid: ```{\"name\": \"Alice\", \"age\": 30,}```","exampleUseCases":[{"title":"Fix crashed multi-agent pipeline JSON","prompt":"My agent pipeline keeps crashing because the LLM keeps returning JSON with trailing commas and single quotes — here's the bad output: {'user': 'bob', 'score': 42,} — can you repair it into valid JSON so the next step can parse it?"},{"title":"Strip markdown fences from LLM response","prompt":"The model returned its JSON wrapped in triple backtick markdown fences and my parser can't handle it. The raw output is: ```json\n{\"items\": [1, 2, 3]}\n``` — please clean that up into plain valid JSON."},{"title":"Recover truncated LLM JSON output","prompt":"The LLM got cut off mid-response and I ended up with truncated JSON that's missing closing brackets: {\"results\": [{\"id\": 1, \"name\": \"test\" — can you deterministically repair this so I can use it downstream?"}],"resultDescription":"Returns a repaired, valid JSON object parsed from the originally malformed or truncated input string, with common LLM-output errors (trailing commas, markdown fences, single quotes, truncation) corrected deterministically.","failureModes":["Input is so severely malformed that deterministic repair is not possible — returns error or partial result","JSON is valid already — may return as-is or with minimal processing","Very long truncated strings may be unrecoverable if too much context is missing","Network timeout or payment (x402) authentication failure returns 402 or 5xx"],"whenToPreferThis":"Choose this endpoint when your multi-agent or LLM pipeline is receiving malformed, truncated, or markdown-wrapped JSON that needs deterministic (rule-based, not AI-generated) repair before downstream parsing. Ideal when you need fast, predictable JSON sanitization without relying on another LLM call to fix the output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:25:37.333Z","isFirstParty":false,"canonicalSlug":"shopify-spy-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-068a813d"}