# Agent Rest Stop – SlippageCap

> Agent Rest Stop – SlippageCap 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).

Returns the largest trade amount (in USD) that still fits under a given slippage cap expressed in basis points

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/SlippageCap?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-slippagecap-8ce6c1bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-7ZY4mraJ007oPKdq3vAR

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-slippagecap-8ce6c1bb -d '<json body>'
```

Example prompt: What's the largest trade I can make if my slippage cap is 50 basis points and I'm working with a $1000 position?

## When to prefer this

Use this endpoint when an AI agent needs to programmatically determine the safe maximum trade or swap size given a specific slippage tolerance in basis points, especially for DeFi or crypto trading workflows where price impact must be capped before submitting an order.

## Known failure modes

- Missing or invalid max_bps value may return an error or unexpected result
- Non-numeric strings for amount_usd or max_bps may cause computation failure
- Extremely high or zero basis point inputs may produce edge-case results
- Endpoint may return an error if required fields are omitted

## How this service works

Largest size still under the slippage cap.

## Output

A computed maximum trade size in USD that is the largest amount still within the specified slippage cap (in basis points), helping agents size orders to avoid exceeding price impact thresholds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "max_bps": {
   "type": "string"
  },
  "amount_usd": {
   "type": "string"
  }
 }
}
```

## More

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