# Tali Agent Tools – Token Exit Check

> Tali Agent Tools – Token Exit Check is a paid API for AI agents from tali-agent-tools.talibot.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Simulates a round-trip buy/sell of a Base ERC-20 token to detect taxes, pool fees, price impact, and whether it's safe to exit a position.

## Facts

- Endpoint: GET https://tali-agent-tools.talibot.workers.dev/v1/token-exit-check?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tali-agent-tools-token-exit-check-ba41628f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DmYYF4r1cIAZFafLzGuym

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 tali-agent-tools-token-exit-check-ba41628f
```

Example prompt: Check if I can safely exit my position in the Base token at 0xFF0C532FDB8Cd566Ae169C1CB157ff2Bdc83E105 — simulate a round-trip with 0.001 ETH and tell me the buy and sell taxes, total loss, and whether it's safe to sell.

## When to prefer this

Use this endpoint when you need to programmatically verify whether a specific Base ERC-20 token can be sold without excessive tax or price impact, especially before executing a trade or listing a token. Prefer it over manual DEX checks when you need structured machine-readable output (tax %, loss %, verdict) that can drive downstream automation. It is specifically designed for Base mainnet tokens and uses actual on-chain simulation rather than static contract analysis.

## Known failure modes

- Token address not found on Base – no liquidity pools available
- Invalid token address format – must be a checksummed 0x address
- Simulation reverts – token may be a honeypot or have blocked sells
- Amount outside supported range (0.0001–1 ETH) returns validation error
- Payment failure via x402/PayAI – USDC balance insufficient or facilitator error

## How this service works

x402 v2 paid agent tools on Base mainnet USDC via PayAI facilitator.

## Output

Returns a JSON object with an exit verdict ('exit_ok' or similar), market data (symbol, price, liquidity, volume, pair age), and a detailed simulation result including buy tax %, sell tax %, transfer tax %, round-trip loss %, the DEX and pool used, pool kind (v2/v3), and any revert reason if the simulation failed.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "Base ERC-20 token address (0x...)"
      },
      "amount_eth": {
       "type": "string",
       "description": "Optional simulated buy size in ETH (0.0001-1, default 0.001)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "token": "0xFF0C532FDB8Cd566Ae169C1CB157ff2Bdc83E105",
  "market": {
   "pools": 2,
   "symbol": "Fren Pet",
   "price_usd": 0.012,
   "pair_age_days": 900,
   "volume_24h_usd": 51000,
   "total_liquidity_usd": 757282
  },
  "reasons": [
   "round trip of 0.001 ETH lost 8.392% (pool fees + taxes + price impact)"
  ],
  "verdict": "exit_ok",
  "checked_at": "2026-10-19T13:00:00.000Z",
  "simulation": {
   "dex": "uniswap",
   "pool": "0x...",
   "stage": "ok",
   "pool_kind": "v2",
   "buy_tax_pct": 4,
   "sell_tax_pct": 3.999,
   "amount_in_eth": 0.001,
   "revert_reason": null,
   "transfer_tax_pct": 3.999,
   "round_trip_loss_pct": 8.392
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tali-agent-tools-token-exit-check-ba41628f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tali-agent-tools.talibot.workers.dev](https://www.zero.xyz/host/tali-agent-tools.talibot.workers.dev/llms.txt)
