{"uid":"cap_3wnl1sWAd4119B2U5a2Oy","slug":"shopify-intel-agentdiet-dev-deterministic-a2a-broken-json-repair-4b1ae30c","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-intel.agentdiet.dev/v1/schema-repair)","url":"https://shopify-intel.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_LrpxoHpuktF2weGQSHTRE","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-intel.agentdiet.dev","brandSlug":"shopify-intel-agentdiet-dev-mpp","brandBaseUrl":"https://shopify-intel.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":"Can you fix this broken JSON I got back from the LLM? It has trailing commas and markdown code fences wrapped around it and it keeps crashing my pipeline: ```{\"name\": \"Alice\", \"age\": 30,}```","exampleUseCases":[{"title":"Fix LLM output crashing agent pipeline","prompt":"The JSON this model returned has trailing commas and single quotes instead of double quotes and it's breaking my downstream agent — can you repair it so it parses cleanly? Here it is: {\"status\": 'ok', \"items\": [1, 2, 3,]}"},{"title":"Strip markdown fences from model response","prompt":"My LLM wrapped its JSON output in a markdown code block like ```json ... ``` and now my parser chokes on it — can you clean that up and give me back valid JSON?"},{"title":"Recover truncated JSON from partial response","prompt":"I got a truncated JSON response that got cut off mid-string and won't parse at all — can you deterministically repair it and give me back a valid JSON object? Here's the broken fragment: {\"user\": \"bob\", \"score\": 42, \"tags\": [\"alpha\", \"be"}],"resultDescription":"A repaired, valid JSON object where all common malformations (trailing commas, markdown fences, single quotes, truncation) have been deterministically corrected, ready for downstream parsing and processing in agent pipelines.","failureModes":["Input is so severely malformed that repair is not deterministically possible — returns error","Input JSON is empty or whitespace-only — returns validation error","Truncation is too severe to infer missing structure — partial repair or error returned","Non-JSON input passed (e.g. plain text prose) — may return error or unexpected output"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives LLM-generated JSON that fails to parse due to common formatting issues like trailing commas, markdown code fences, single quotes, or truncation. Prefer it over custom parsing logic when you need a deterministic, consistent repair strategy across heterogeneous LLM outputs without writing bespoke sanitization code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:24:22.224Z","isFirstParty":false,"canonicalSlug":"shopify-intel-agentdiet-dev-deterministic-a2a-broken-json-repair-991f500e"}