{"uid":"cap_Kam0rlcdxXLALvz04Lzak","slug":"llm-json-schema-healer-a1dba891","name":"LLM JSON Schema Healer","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.","url":"https://mcp-gateway.agentdiet.dev/v1/llm-json-schema-healer?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"raw_json":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","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":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_l3G-mT1DhhhlrU-BnqMkw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs and normalizes malformed or bloated JSON to conform to a target schema, returning a compressed, valid JSON object.","exampleAgentPrompt":"Can you heal this malformed JSON so it conforms to the expected schema? Pass it as raw_json in a GET request and give me back the cleaned, compressed version.","exampleUseCases":[{"title":"Repair LLM-generated JSON output","prompt":"The JSON my AI model just returned is malformed and doesn't match the schema — can you heal it and send me back the corrected, schema-compliant version?"},{"title":"Compress bloated API response payload","prompt":"I have a huge JSON blob from an API that has tons of extra fields I don't need. Can you run it through the JSON schema healer to strip it down and compress it to just what the schema requires?"},{"title":"Validate agent tool call output","prompt":"My agent just produced some JSON as a tool call result but it's not passing schema validation — can you fix and normalize it so it's valid and conformant before I pass it downstream?"}],"resultDescription":"A JSON object containing a 'data' field with the healed/compressed JSON, a 'status' field (e.g. 'ok'), and an 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4%).","failureModes":["Missing required 'input' field returns a validation error","Invalid or unparseable raw_json string may return an error or empty data object","Unsupported HTTP method (not GET or POST) returns a schema violation","Extremely large JSON payloads may time out or be rejected","JSON that cannot be mapped to any valid schema may return a best-effort or empty result"],"whenToPreferThis":"Use this endpoint when you need to automatically repair, normalize, or compress JSON that is malformed, bloated, or non-compliant with a target schema — especially when the JSON originated from an LLM or AI agent output. Prefer this over manual schema validation when you need a high compression ratio and deterministic correction in a single API call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:19.762Z","isFirstParty":false,"canonicalSlug":"llm-json-schema-healer-a1dba891"}