# Hermes Agent Data Services – Pool Risk (Slippage & Implied Price)

> Hermes Agent Data Services – Pool Risk (Slippage & Implied Price) is a paid API for AI agents from x402-agent.majighufron.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-13).

Returns on-chain liquidity pool risk metrics including slippage estimate and implied price for a given token swap on Base or Base Sepolia

## Facts

- Endpoint: GET https://x402-agent.majighufron.workers.dev/api/pool-risk?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hermes-agent-data-services-pool-risk-slippage-implied-price-27eb3244
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Cps3VIwpRZhRYBPU4KO2o

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 hermes-agent-data-services-pool-risk-slippage-implied-price-27eb3244
```

Example prompt: What's the slippage and implied price if I sell 1000 USDC for ETH on this pool at 0xABC...123 on the Base network?

## When to prefer this

Use this endpoint when an AI agent needs real-time on-chain slippage and price impact data for a constant-product AMM pool on Base before executing or recommending a token swap. Prefer this over off-chain price feeds when you need pool-specific trade-size-aware slippage estimates rather than spot prices. Ideal for DeFi automation agents that need to gate trades based on acceptable price impact thresholds.

## Known failure modes

- Invalid or non-existent pool address returns an error or empty reserves
- Missing required query parameters (pool, base, quote) returns a 400 Bad Request
- Unsupported chain value returns a validation error
- Payment not fulfilled (HTTP 402) if x402 USDC payment on Base is not completed
- Large notional relative to pool size may yield extreme slippage values that are technically valid but practically unusable
- Pool not holding both specified tokens may return unexpected results

## How this service works

Pay-per-call on-chain data for agents. USDC on Base over x402 (HTTP 402).

## Output

Returns a JSON object with: pool address, chain, implied price (how many quote tokens per base token), pool reserves for both tokens, estimated slippage as a percentage and notional amount for the given trade size, and caveats noting model assumptions (constant-product AMM, fees not included).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "pool",
      "base",
      "quote"
     ],
     "properties": {
      "base": {
       "type": "string",
       "description": "Token you would sell."
      },
      "pool": {
       "type": "string",
       "description": "Pool address, or any address holding both tokens."
      },
      "chain": {
       "enum": [
        "base",
        "base-sepolia",
        "robinhood"
       ],
       "type": "string",
       "description": "Chain to read."
      },
      "quote": {
       "type": "string",
       "description": "Token you would receive."
      },
      "notional": {
       "type": "number",
       "description": "Amount of the base token you would sell."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "pool": "0x...",
  "chain": "base",
  "caveats": [
   "constant-product model",
   "fees ignored"
  ],
  "reserves": {
   "base": "12,000",
   "quote": "30,000"
  },
  "slippage": {
   "percent": "0.42",
   "notional": "1000"
  },
  "impliedPrice": "2.5"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hermes-agent-data-services-pool-risk-slippage-implied-price-27eb3244/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.majighufron.workers.dev](https://www.zero.xyz/host/x402-agent.majighufron.workers.dev/llms.txt)
