{"uid":"cap_TGUpY6I_eMnc6NRNO7tyq","slug":"agentdiet-schema-repair-ff4f0b2e","name":"AgentDiet Schema Repair","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/schema-repair?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_V_nenrrXEKKwDJe78RPz9","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 bloated JSON schemas passed as raw input, returning a cleaned schema with compression metrics","exampleAgentPrompt":"Can you run this raw JSON through AgentDiet's schema repair to fix any structural issues and tell me the compression ratio it achieves?","exampleUseCases":[{"title":"Fix broken agent tool schema","prompt":"I have a malformed JSON schema that's causing my agent pipeline to fail — can you send it through AgentDiet's schema repair and give me back the fixed version along with how much it compressed?"},{"title":"Pre-flight schema check for MCP node","prompt":"Before I push this JSON schema to my MCP node, run it through the schema repair endpoint to make sure it's valid and see if it needs de-bloating."},{"title":"Audit context window JSON for token savings","prompt":"This JSON blob keeps blowing out my context window — can you pass it to AgentDiet's schema repair to clean it up and show me the compression ratio I'd get?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the repaired schema, a 'status' field (e.g. 'ok'), and a 'roi_proof' object including 'compression_ratio_pct' indicating how much the schema was compressed (e.g. 91.4%).","failureModes":["Missing required 'input' field returns validation error","Invalid or unparseable raw_json query param may return empty or error data","Network or payment failure (x402 USDC settlement) prevents execution","Malformed HTTP method enum value causes request rejection","Empty or null raw_json results in no meaningful repair output"],"whenToPreferThis":"Choose this endpoint when you need to programmatically repair, validate, or compress a raw JSON schema before passing it into an AI agent context window or MCP pipeline. Especially useful when schema size is causing token budget issues or when downstream agents are rejecting malformed schemas. Prefer over generic JSON linters when you also need compression metrics (roi_proof) and deterministic A2A-compatible output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:49.826Z","isFirstParty":false,"canonicalSlug":"agentdiet-schema-repair-ff4f0b2e"}