# Agent Rest Stop – SchemaGate

> Agent Rest Stop – SchemaGate is a paid API for AI agents from agent-gas-station.agent-gas-station.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Validates that a payload conforms to a given schema by checking required keys and their types, returning a pass or fail result.

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/SchemaGate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-rest-stop-schemagate-8483c80f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3GQHXEWQDQ9okbWVqSujj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-rest-stop-schemagate-8483c80f -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Checks required keys and types.

## Output

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).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  },
  "payload": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-rest-stop-schemagate-8483c80f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-gas-station.agent-gas-station.workers.dev](https://www.zero.xyz/host/agent-gas-station.agent-gas-station.workers.dev/llms.txt)
