{"uid":"cap_4qUIiOrdZP81HEb7xfN0f","slug":"mesh-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-6c669e5a","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://mesh.agentdiet.dev/v1/schema-repair)","url":"https://mesh.agentdiet.dev/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_qK__DX2N2nFRhJl3BMiXL","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"mesh.agentdiet.dev","brandSlug":"mesh-agentdiet-dev-mpp","brandBaseUrl":"https://mesh.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Repairs truncated or malformed LLM JSON outputs (trailing commas, markdown fences, single quotes) deterministically so multi-agent pipelines never crash on bad JSON.","exampleAgentPrompt":"The JSON output from the last LLM step has trailing commas and markdown code fences around it and won't parse — can you run it through the broken-JSON repair service and give me back a clean, valid JSON object?","exampleUseCases":[{"title":"Fix broken LLM pipeline output","prompt":"The agent just returned this JSON with trailing commas and it's crashing my pipeline: ```{\"name\": \"Alice\", \"score\": 42,}``` — can you repair it and give me back valid JSON?"},{"title":"Strip markdown fences from agent response","prompt":"My LLM wrapped its JSON response in triple backticks and now it won't parse downstream. Here's the raw output — please clean it up and return just the valid JSON."},{"title":"Recover truncated JSON from partial LLM response","prompt":"The model got cut off mid-response and the JSON is incomplete — it ends with '\"status\": \"proc' and no closing braces. Can you deterministically repair it so I can continue the workflow?"}],"resultDescription":"Returns a JSON object containing the repaired and validated JSON output, with malformed syntax (trailing commas, markdown fences, single quotes, truncated structures) corrected into a valid, parseable JSON object ready for downstream consumption.","failureModes":["Input JSON is so malformed it cannot be deterministically repaired — returns an error or partial result","Empty or null raw_json input triggers validation error","Extremely large payloads may hit size limits","JSON with ambiguous or irrecoverably missing structure may yield incorrect repairs"],"whenToPreferThis":"Choose this endpoint when your multi-agent or LLM pipeline produces JSON that fails to parse due to common LLM artifacts like trailing commas, markdown code fences, single-quoted keys, or truncated output. Ideal for agentic workflows where downstream steps require strictly valid JSON and you need a cheap, deterministic fix layer rather than a full re-generation call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T06:42:26.652Z","isFirstParty":false,"canonicalSlug":"mesh-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-ae3fa643"}