{"uid":"cap_s8S5wAE7HF46N2YgT_MNU","slug":"shopify-intel-agentdiet-dev-deterministic-a2a-broken-json-repair-991f500e","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/repair)","url":"https://shopify-intel.agentdiet.dev/v1/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_qf-C2WUL9QhdIUYjBOeZQ","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) into valid JSON so multi-agent pipelines don't crash","exampleAgentPrompt":"This JSON string from the LLM output is broken — it has trailing commas and markdown code fences wrapping it — can you repair it into valid JSON so the pipeline doesn't crash? Here it is: ```json {\"name\": \"Alice\", \"age\": 30,} ```","exampleUseCases":[{"title":"Fix LLM output before downstream processing","prompt":"The language model just returned this JSON with a trailing comma and it's wrapped in markdown backticks, which is breaking my parser — can you clean it up into valid JSON? Here's the raw output: ```json {\"status\": \"ok\", \"items\": [\"a\", \"b\",]} ```"},{"title":"Repair truncated agent response JSON","prompt":"My agent's response got cut off mid-JSON and now it's malformed — can you try to repair this truncated string into something valid? Here it is: {\"user\": \"bob\", \"score\": 42, \"tags\": [\"premium\""},{"title":"Normalize single-quoted JSON from AI pipeline","prompt":"I'm getting JSON back from an AI step that uses single quotes instead of double quotes and it won't parse — can you fix this string so it's valid JSON? The raw string is: {'product': 'widget', 'price': 9.99, 'available': true}"}],"resultDescription":"A JSON object containing the repaired, valid JSON — converting the malformed input (trailing commas removed, markdown fences stripped, single quotes converted to double quotes, truncated structures closed) into a well-formed, parseable JSON value ready for downstream consumption.","failureModes":["Input JSON is so severely malformed that deterministic repair is impossible, returning an error response","Empty or whitespace-only raw_json input triggers a validation error","JSON that is actually valid but semantically incorrect cannot be detected or corrected","Extremely long or deeply nested JSON may hit processing limits","Network timeout if the service is unavailable"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline receives JSON from an LLM or AI model that has common structural defects like trailing commas, markdown code fences, single quotes, or truncation — and you need a fast, deterministic (not generative) fix rather than asking another LLM to rewrite the output. Ideal for lightweight, reliable pre-processing steps in automated pipelines where correctness and speed matter more than AI-powered inference.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:26:10.088Z","isFirstParty":false,"canonicalSlug":"shopify-intel-agentdiet-dev-deterministic-a2a-broken-json-repair-991f500e"}