{"uid":"cap_erF0PWhdU24yLcBuXH77v","slug":"agentdiet-llm-json-schema-healer-9c1b3b03","name":"AgentDiet LLM JSON Schema Healer","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.","url":"https://status.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_UC4X5Xs7pgSGCFclhlUB6","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":"Validates and repairs malformed or bloated LLM-generated JSON against a schema, returning a cleaned, schema-compliant JSON object with compression metrics.","exampleAgentPrompt":"This JSON came back from the LLM and it's malformed or doesn't match the schema — can you run it through the AgentDiet schema healer to fix it and tell me the compression ratio?","exampleUseCases":[{"title":"Fix broken LLM pipeline output","prompt":"The JSON my agent just returned is invalid and breaking the next step in my pipeline — can you heal it so it's schema-compliant and show me how much it got compressed?"},{"title":"Compress bloated AI-generated JSON","prompt":"My model keeps outputting way too many tokens in its JSON responses. Can you strip it down and fix it so it matches the expected schema, and tell me the compression percentage?"},{"title":"Validate LLM JSON before storage","prompt":"Before I save this LLM-generated JSON to the database, can you validate and repair it against the schema so I know it's clean and well-formed?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the healed, schema-compliant JSON, a 'status' field ('ok' on success), and a 'roi_proof' object containing a compression_ratio_pct value (e.g. 91.4%) showing how much the input was compressed/cleaned.","failureModes":["Invalid or unparseable raw_json input returns an error status","JSON that cannot be mapped to any known schema may return an empty or unchanged data object","Missing required 'input' field returns a validation error","Malformed query parameters may cause a 400-level response","Network or node unavailability may result in timeout or 5xx error"],"whenToPreferThis":"Choose this endpoint when you need to automatically repair and validate JSON output produced by language models — especially when the JSON is malformed, schema-non-compliant, or bloated with unnecessary tokens. Ideal for AI agent pipelines where downstream steps require strict JSON conformance and you want measurable compression proof. Prefer this over manual parsing or generic validators when you need a deterministic, paid, metered healing step with ROI metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:29.392Z","isFirstParty":false,"canonicalSlug":"agentdiet-llm-json-schema-healer-9c1b3b03"}