{"uid":"cap_jF9KcIY8wzJQdgTEQQ4xr","slug":"x402broker-com-deterministic-a2a-broken-json-repair-schema-validator-602fa9e1","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://x402broker.com/v1/schema-repair)","url":"https://x402broker.com/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_2zozvwryGfzqURud0hcSp","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"x402broker.com","brandSlug":"x402broker-com-mpp","brandBaseUrl":"https://x402broker.com","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 so it's valid JSON I can actually parse? Here's the raw output: ```json {\"name\": \"Alice\", \"score\": 42, } ```","exampleUseCases":[{"title":"Fixing LLM output in agent pipeline","prompt":"The language model returned this JSON but it has trailing commas and it's wrapped in markdown fences, so my pipeline keeps crashing — can you repair it into valid JSON? Here's the raw string: ```json {\"user\": \"bob\", \"status\": \"active\", } ```"},{"title":"Sanitizing single-quoted JSON keys","prompt":"I got this JSON from an LLM but all the keys are in single quotes instead of double quotes and it won't parse — please fix it into valid JSON: {'product': 'widget', 'price': 9.99}"},{"title":"Recovering truncated JSON response","prompt":"My agent's response got cut off mid-JSON and now it's malformed — can you repair this truncated string into something valid? Here it is: {\"items\": [{\"id\": 1, \"name\": \"alpha\"}, {\"id\": 2, \"name\": \"beta\""}],"resultDescription":"A repaired, valid JSON object that was previously malformed, truncated, or wrapped in markdown, ready to be used in downstream agent pipeline steps without parsing errors.","failureModes":["Input is so severely truncated that reconstruction is ambiguous — returns best-effort or error","Input is not JSON at all (e.g. plain prose) — may return error or empty object","Network timeout or upstream service unavailability — returns HTTP 5xx","Payment authorization failure via x402 — returns HTTP 402","Input minLength violation (empty string) — returns HTTP 400 validation error"],"whenToPreferThis":"Choose this endpoint when your multi-agent pipeline or LLM output pipeline frequently receives malformed, truncated, or markdown-wrapped JSON that crashes downstream processing. It is specifically designed for A2A and MCP use cases where deterministic JSON repair is needed at low cost ($0.002/call) with idempotent retry support via Idempotency-Key header.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T06:34:57.472Z","isFirstParty":false,"canonicalSlug":"x402broker-com-deterministic-a2a-broken-json-repair-schema-validator-c53712d8"}