{"uid":"cap_3GQHXEWQDQ9okbWVqSujj","slug":"agent-rest-stop-schemagate-8483c80f","name":"Agent Rest Stop – SchemaGate","description":"Checks required keys and types.","url":"https://agent-gas-station.agent-gas-station.workers.dev/v1/SchemaGate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"schema":{"type":"string"},"payload":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_S1kbaDQHYwp44AoYs1hkK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates that a payload conforms to a given schema by checking required keys and their types, returning a pass or fail result.","exampleAgentPrompt":"Before I pass this tool output downstream, check whether this payload matches the required schema — the schema is '{\"name\":\"string\",\"amount\":\"number\"}' and the payload is '{\"name\":\"Alice\",\"amount\":42}' — does it pass?","exampleUseCases":[{"title":"Gate agent tool output before routing","prompt":"I just got a response from a tool and I want to make sure it has all the right keys and types before I send it to the next step — can you validate this payload against the schema '{\"userId\":\"string\",\"score\":\"number\"}' and tell me if it passes?"},{"title":"Reject malformed user-submitted data","prompt":"A user submitted this data: '{\"email\":\"bob@example.com\",\"age\":\"twenty-five\"}' — check it against the schema '{\"email\":\"string\",\"age\":\"number\"}' and tell me whether it passes or fails the type check."},{"title":"Enforce schema compliance in an automation pipeline","prompt":"Before my automation writes anything to storage, I need to verify that the payload '{\"id\":\"abc123\",\"value\":99,\"active\":true}' satisfies the schema '{\"id\":\"string\",\"value\":\"number\",\"active\":\"boolean\"}' — run the schema gate and let me know the result."}],"resultDescription":"A pass or fail verdict indicating whether the provided payload satisfies the schema's required keys and their expected types, along with details about any violations (missing keys or type mismatches).","failureModes":["Malformed schema string causes a parse error and a fail result","Payload is not valid JSON string and cannot be checked","Schema and payload are both empty — vacuous pass may be returned","Type names in schema are non-standard and not recognized","Network timeout from the Workers runtime returns no result","Payment of $0.01 USDC not fulfilled causes 402 rejection before validation runs"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, fast, pay-per-call schema gate inside an agent pipeline — especially when you want to check required keys and types before passing data to a downstream step without standing up your own validation logic. It is ideal for agentic workflows running on Cloudflare Workers where x402 micropayments are already in use and you want to avoid large validation library dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:45.363Z","isFirstParty":false,"canonicalSlug":"agent-rest-stop-schemagate-8483c80f"}