# Agent Rest Stop - Stale Quote Checker

> Agent Rest Stop - Stale Quote Checker 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).

Checks whether a previously obtained quote is fresh or stale based on a configurable maximum age in seconds.

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/StaleQuote?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-stale-quote-checker-f76a06e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vd-gRjCJ1tuuJuF_V9pyI

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-stale-quote-checker-f76a06e4 -d '<json body>'
```

Example prompt: Check whether my quote from 2024-06-01T12:00:00Z is still fresh given a max age of 300 seconds.

## When to prefer this

Use this endpoint when your agent needs a lightweight, paid gatekeeper check to determine whether a cached or previously obtained quote is still usable before acting on it. It is ideal for agentic pipelines that cache quotes and need a simple freshness guard without implementing custom time logic locally.

## Known failure modes

- Missing or malformed quoted_at timestamp returns an error
- Invalid or non-numeric max_age_sec causes a validation failure
- Payment not attached results in 402 Payment Required
- Extremely large max_age_sec values may be rejected or clamped
- Clock skew between caller and server may produce unexpected results

## How this service works

Fresh or stale against a max age.

## Output

Returns a freshness determination indicating whether the provided quote timestamp falls within the allowed max age window — effectively a fresh or stale verdict based on elapsed time since quoted_at versus max_age_sec.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "quoted_at": {
   "type": "string"
  },
  "max_age_sec": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-rest-stop-stale-quote-checker-f76a06e4/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)
