{"uid":"cap_hx4Rq2gxXFOr6nyoYll1-","slug":"agentdiet-schema-repair-endpoint-540bed67","name":"AgentDiet Schema Repair Endpoint","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/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_O7r8m34kEXukN8wLSmyjH","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 non-compliant JSON schemas, returning a corrected schema with compression proof","exampleAgentPrompt":"Can you run this raw JSON schema through AgentDiet's schema repair tool and give me back a fixed, compliant version along with the compression ratio it achieved?","exampleUseCases":[{"title":"Fix broken API schema before deployment","prompt":"I've got a malformed JSON schema for my REST API that keeps failing validation — can you send it through AgentDiet's schema repair endpoint and return the corrected schema?"},{"title":"Normalize third-party schema for agent pipeline","prompt":"This JSON schema I pulled from a vendor's docs is badly structured and won't parse correctly in my pipeline. Can you repair and normalize it using AgentDiet and show me how much it compressed?"},{"title":"Validate schema compliance before MCP integration","prompt":"Before I wire this schema into my MCP node, I want to make sure it's valid and compliant — can you run it through AgentDiet's schema repair and tell me the compression ratio it achieved?"}],"resultDescription":"Returns a JSON object with a 'status' field ('ok' on success), a 'data' object containing the repaired schema, and an 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4%). Payable in USDC on Base via x402 at $0.002 per call.","failureModes":["Invalid or unparseable raw_json input — returns error status","Missing required 'input' object or 'method'/'type' fields — 400-level error","Payment not settled in USDC on Base — 402 Payment Required response","Schema too large or malformed beyond repair — may return partial or empty data object","Network/node downtime — no response or timeout"],"whenToPreferThis":"Choose this endpoint when you need deterministic, automated JSON schema validation and repair in an agent or B2A/A2A workflow, especially when you want a compression ratio proof alongside the fixed schema. Prefer it over manual schema linting tools when you need programmatic access with micropayment-per-call economics via x402/L402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:27.142Z","isFirstParty":false,"canonicalSlug":"agentdiet-schema-repair-endpoint-540bed67"}