{"uid":"cap_Sy05nBh9JxL6nI03AwyiG","slug":"agentdiet-llm-json-schema-healer-fcdaf7ed","name":"AgentDiet LLM JSON Schema Healer","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.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_KMGkyz0cF-71NcRqTlXOA","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 validates malformed or broken LLM-generated JSON against a schema, compressing and healing the output to a valid structure","exampleAgentPrompt":"This JSON output from my LLM is broken and doesn't validate — can you run it through AgentDiet's schema healer to fix and normalize it? Here's the raw JSON: {\"name\":\"foo\",\"value\":}","exampleUseCases":[{"title":"Repair broken LLM API responses","prompt":"My language model keeps returning malformed JSON that breaks my pipeline — can you heal this raw JSON string and return a valid, compressed version? Here's what it output: {\"result\":\"ok\",\"data\":,\"count\":3}"},{"title":"Normalize AI-generated config files","prompt":"I have a JSON config generated by an AI assistant that has schema errors and extra bloat. Can you run it through the JSON schema healer to fix the structure and compress it down?"},{"title":"Validate agent tool-call outputs","prompt":"My AI agent's tool-call returned JSON that doesn't pass schema validation. Can you send this raw JSON through AgentDiet's healer as a GET request and show me the healed output along with the compression ratio?"}],"resultDescription":"Returns a JSON object containing a 'data' field with the healed/normalized JSON, a 'status' field (e.g. 'ok'), and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%), indicating how much the payload was reduced during healing.","failureModes":["Unparseable input JSON that cannot be salvaged returns an error status","Missing required 'input' or 'method' fields results in a schema validation error","Extremely large payloads may exceed processing limits","Payment failure via x402/USDC on Base may block execution","GET method used for POST-only operations may return method-not-allowed"],"whenToPreferThis":"Choose this endpoint when you need to automatically repair, validate, and compress malformed or bloated JSON produced by LLMs or AI agents. It is especially useful in A2A pipelines where tool-call outputs or LLM responses frequently fail schema validation and must be normalized before downstream consumption. Prefer it over manual parsing logic when you want a deterministic, pay-per-use micro-service approach settling in USDC on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:22.412Z","isFirstParty":false,"canonicalSlug":"agentdiet-llm-json-schema-healer-fcdaf7ed"}