{"uid":"cap_gFXFwM8Bs2x1xpgyTT2l0","slug":"agentdiet-schema-repair-endpoint-f221aaed","name":"AgentDiet Schema Repair Endpoint","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/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_H_rwwjFP1sCQn_XIHQIu2","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 raw JSON into a clean, compressed schema structure via the AgentDiet MCP gateway.","exampleAgentPrompt":"Can you repair and normalize this malformed JSON for me? Here's the raw JSON string I need cleaned up and compressed: {\"name\":\"test\",\"val\":,\"items\":[}","exampleUseCases":[{"title":"Fix broken API response JSON","prompt":"This API response I got back has syntax errors and broken structure — can you run it through the schema repair tool to get a clean, normalized version I can actually use?"},{"title":"Compress bloated JSON payload","prompt":"I have a huge, messy JSON blob that needs to be compressed and cleaned up before I pass it to another service — can you repair and normalize it so the compression ratio is maximized?"},{"title":"Pre-process LLM-generated JSON","prompt":"The JSON output from my language model keeps coming back malformed with missing brackets and bad values — can you run it through a schema repair step to fix it automatically?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the repaired/normalized schema, a 'status' field (e.g. 'ok'), and an 'roi_proof' object showing the compression ratio achieved (e.g. compression_ratio_pct: 91.4).","failureModes":["Missing required 'input' field returns validation error","Invalid HTTP method (not GET or POST) returns schema error","Unparseable raw_json may return empty or partial data object","Payment failure (insufficient USDC) returns 402 response","Malformed input object structure returns 400-level error"],"whenToPreferThis":"Choose this endpoint when you need to automatically repair, normalize, and compress malformed or structurally broken JSON payloads, especially in agent pipelines where downstream tools require well-formed schemas. It is particularly useful when JSON arrives from LLMs, scraping, or third-party APIs with inconsistent structure. It settles via x402 in USDC on Base, making it suitable for autonomous agent payment flows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:32.764Z","isFirstParty":false,"canonicalSlug":"agentdiet-schema-repair-endpoint-f221aaed"}