{"uid":"cap_Yinc_WDOR6XimTSBOEa0y","slug":"genesis-agent-tools-api-response-contract-guard-3555499d","name":"GENESIS Agent Tools — API Response Contract Guard","description":"Pay-per-call x402 APIs for autonomous agents on Base USDC: API compatibility analysis, bounded HTTP/JSON workflows, URL evidence analysis, crypto price consensus, and agent/MCP readiness checks.","url":"https://genesis-agent-tools.genesisagenttools.workers.dev/api/tools/api-response-contract-guard?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["schema","response"],"properties":{"schema":{"type":"object"},"response":{"type":"object"}}},"responseSchema":{"type":"object","properties":{"valid":{"type":"boolean"},"errors":{"type":"array"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_M6Nj8E3pHisQBX7kF0MvP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates an API response object against a provided JSON schema, returning a boolean validity flag and a list of validation errors.","exampleAgentPrompt":"Check if this API response I just got back matches its expected JSON schema — here's the schema and the response object, tell me if it's valid and list any errors.","exampleUseCases":[{"title":"Guard agent pipeline against bad API data","prompt":"Before I pass this upstream API response into the next step of my workflow, validate it against the expected schema and tell me if it's valid or flag any errors I need to handle."},{"title":"Debug mismatched API contract in integration","prompt":"I'm getting unexpected behavior from a third-party API — can you check whether this response object actually conforms to the schema I was given in the docs and list what's wrong?"},{"title":"Automated contract compliance check in CI","prompt":"Run a contract guard check on this API response against my defined JSON schema and return whether it passes validation and what errors exist, so I can fail the build if something's off."}],"resultDescription":"Returns a JSON object with a 'valid' boolean indicating whether the response conforms to the schema, and an 'errors' array listing any schema violations found.","failureModes":["Missing required 'schema' or 'response' fields in request body — returns 400 or validation error","Malformed or non-JSON-serializable schema object causes processing failure","Empty or null response object may yield unexpected validation results","Complex or deeply nested schemas may not fully validate depending on implementation","Payment failure via x402 protocol prevents call from being processed"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically verify that a live API response conforms to a known JSON schema contract before acting on the data — especially in multi-step agent pipelines where downstream steps depend on well-structured input. Ideal for catching schema drift, debugging integrations, or enforcing contracts in automated workflows where manual inspection is impractical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:52:03.340Z","isFirstParty":false,"canonicalSlug":"genesis-agent-tools-api-response-contract-guard-3555499d"}