{"uid":"cap_ljVW-j0ZlcAPov_FsSsNq","slug":"mesh-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-0777e513","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":"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_DwD64I_oP8xceEpytIxEY","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) so multi-agent pipelines can parse them reliably.","exampleAgentPrompt":"The LLM returned this broken JSON with trailing commas and markdown fences — can you repair it so I can parse it: ```{\"name\": \"Alice\", \"age\": 30,}```?","exampleUseCases":[{"title":"Fixing LLM pipeline JSON crashes","prompt":"My agent pipeline keeps crashing because the LLM keeps returning JSON with trailing commas and missing brackets — can you fix this output so it's valid JSON: {\"results\": [\"a\", \"b\",], \"count\": 2,}?"},{"title":"Stripping markdown fences from AI output","prompt":"The model wrapped its JSON response in triple backticks and now my parser is failing — can you strip the markdown and give me clean JSON from this: ```json\n{\"status\": \"ok\", \"value\": 42}\n```?"},{"title":"Repairing single-quoted JSON from legacy agent","prompt":"One of my legacy agents outputs JSON with single quotes instead of double quotes and it's breaking downstream tools — can you repair this into valid JSON: {'user': 'bob', 'score': 95}?"}],"resultDescription":"A repaired, valid JSON object reconstructed from the malformed input, with all syntax errors corrected including trailing commas removed, markdown fences stripped, single quotes converted to double quotes, and truncated structures closed.","failureModes":["Input is so severely malformed that deterministic repair is impossible — returns error indicating irreparable input","Input is not JSON at all (e.g. plain text or binary) — may return error or best-effort result","Ambiguous truncation where multiple valid completions exist — repair may pick one arbitrarily","Very large JSON strings may hit query parameter length limits when passed via GET"],"whenToPreferThis":"Choose this endpoint when you need deterministic, rule-based JSON repair for LLM outputs — especially in multi-agent pipelines where consistency matters more than AI-generated guessing. Prefer this over asking another LLM to fix the JSON when you need repeatable, low-latency, low-cost fixes for common syntax errors like trailing commas, markdown fences, and single quotes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:23:43.636Z","isFirstParty":false,"canonicalSlug":"mesh-agentdiet-dev-deterministic-a2a-broken-json-repair-schema-ae3fa643"}