{"uid":"cap_Wc4UNFHw_9eMYBuXOwJCN","slug":"agentdiet-json-validator-09e71ba0","name":"AgentDiet JSON Validator","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/json-validator?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_KuiQ6Q4IAxrlv9shCOKmI","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 raw JSON strings and returns parsed structure with compression metrics via a pay-per-call x402 endpoint.","exampleAgentPrompt":"Can you validate this JSON string for me and tell me if it's well-formed: '{\"name\":\"Alice\",\"age\":30,\"active\":true}'?","exampleUseCases":[{"title":"Pre-flight API payload check","prompt":"Before I send this config object to the deployment API, can you validate that it's valid JSON? Here it is: '{\"env\":\"production\",\"replicas\":3,\"image\":\"myapp:latest\"}'"},{"title":"Debug malformed JSON response","prompt":"I got this string back from a third-party service and I'm not sure if it's valid JSON — can you check it and tell me what's wrong? Here's the string: '{\"id\":1,\"name\":\"test\",\"tags\":[\"a\",\"b\"]}'"},{"title":"Verify user-submitted JSON config","prompt":"A user submitted this JSON configuration in our app — can you validate it and return the parsed structure so I know it's safe to use? The input is: '{\"threshold\":0.85,\"mode\":\"strict\",\"filters\":[]}'"}],"resultDescription":"Returns a JSON object with a 'status' field ('ok' or error), a 'data' field containing the parsed JSON object, and an 'roi_proof' object including a compression_ratio_pct metric indicating how efficiently the input was processed.","failureModes":["Invalid or malformed JSON input returns a non-ok status","Missing required 'input' field causes request rejection","Incorrect 'type' value (must be 'http') causes schema validation failure","Empty or null raw_json query parameter may return an error or empty data","Network timeout if gateway is overloaded"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use JSON validation service that is accessible to AI agents via x402 micropayments on Base/USDC, without requiring API key management. Suitable for agent workflows that need on-demand JSON verification at low cost ($0.002/call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:31.388Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-validator-09e71ba0"}