exit_liquidity_check is an MCP-native tool on the OKX.AI marketplace. Call it, pay per call, get a verdict. No SDK lock-in — any MCP client works.
// Any MCP client (Claude Code, Codex, Hermes, OpenClaw)
const check = await mcp.call("exit_liquidity_check", {
token_address: "0x6982…B1933", // the token you'd hold
chain: "eip155:8453", // analysis chain (Base)
size_usd: 50000, // intended position size
side: "long", // long = you must SELL to exit
});
// x402 handshake happens under the hood:
// 402 Payment Required → Agentic Wallet signs $0.02 USDT0 on X Layer → 200
if (check.verdict === "BLOCK") {
abort(check.reason); // don't become the exit liquidity
}POST /v1/exit_liquidity_check HTTP/1.1
Host: exitguard.asp.okx.ai
Content-Type: application/json
→ 402 Payment Required
x402: scheme=exact; amount=0.02; asset=USDT0; chain=eip155:196
→ [Agentic Wallet signs the payment payload]
← 200 OK (X-PAYMENT-RESPONSE: settled 0x…) { verdict: "BLOCK", … }Token the agent intends to hold.
Analysis chain (EVM or Solana). Decoupled from settlement.
Intended position / exit notional in USD.
long ⇒ must sell to exit (MVP). Default long.
Asset to exit into. Default USDC.
How far to walk the book for available liquidity. Default 3000.
The gate. BLOCK ⇒ do not enter.
What the agent actually gets back exiting at size.
Cost of exiting, in basis points.
Your size as a share of the routed sell-side book.
true when your own unwind is the market (≥50%).
Routed sell-side depth (on-chain pool reserves).
Largest size that clears back to OK.
Auditable slippage ladder — the probed quotes.
x402 receipt: USDT0 / X Layer / tx hash.
{
"id": "chk_tpepe_50k_hero",
"token_address": "0x7a2519f0d4c1b3e8a6f5029d3c8b1e4a6d0f9c27",
"token_symbol": "TPEPE",
"chain": "eip155:8453",
"quote_asset": "USDC",
"side": "long",
"size_usd": 50000,
"verdict": "BLOCK",
"reason": "Exiting $50,000 of $TPEPE would realize only $18,500 — a 63% haircut (6,300 bps slippage to exit). Your order is 82% of the $61,000 of routed sell-side liquidity, so your own unwind IS the market — you are the exit liquidity. Downsize to ≤ $12,000 to clear back to WARN, or ≤ $6,000 for OK.",
"realizable_exit_value_usd": 18500,
"slippage_to_exit_bps": 6300,
"pct_of_available_liquidity": 82,
"you_are_the_exit_liquidity": true,
"available_exit_liquidity_usd": 61000,
"recommended_max_size_usd": 6000,
"depth_curve": [
{
"size_usd": 3000,
"slippage_bps": 95,
"realizable_usd": 2972,
"avg_price": 0.0000041601
},
{
"size_usd": 6000,
"slippage_bps": 175,
"realizable_usd": 5895,
"avg_price": 0.0000041265
},
{
"size_usd": 12500,
"slippage_bps": 850,
"realizable_usd": 11438,
"avg_price": 0.000003843
},
{
"size_usd": 25000,
"slippage_bps": 2900,
"realizable_usd": 17750,
"avg_price": 0.000002982
},
{
"size_usd": 50000,
"slippage_bps": 6300,
"realizable_usd": 18500,
"avg_price": 0.000001554
},
{
"size_usd": 75000,
"slippage_bps": 7300,
"realizable_usd": 20250,
"avg_price": 0.000001134
},
{
"size_usd": 100000,
"slippage_bps": 7970,
"realizable_usd": 20300,
"avg_price": 8.526e-7
}
],
"venues_probed": [
"okx-dex-aggregator",
"aerodrome-cl"
],
"quote_block": 21940531,
"impact_band_bps": 3000,
"data_caveats": [
"Routed on-chain DEX venues only — CEX orderbook depth is not included.",
"Snapshot at the quoted block; pool state can move before you actually exit.",
"Simultaneous exiters and MEV are not modeled.",
"Depth is 92% concentrated in a single Aerodrome CL pool — the curve goes near-vertical past $50k; realizable value asymptotes around $20k no matter how much more you dump."
],
"settlement": {
"scheme": "exact",
"asset": "USDT0",
"chain": "eip155:196",
"amount_usd": 0.02,
"tx_hash": "0x1a5d9f0c3b6e2874a0d51f9e3c7b0a6d284f13b9e0c6a4d7f2b58e10c3a6d9f4",
"paid_at": "2026-07-08T13:16:00.000Z",
"simulated": true
},
"computed_at": "2026-07-08T13:16:00.000Z",
"latency_ms": 840
}| Agent | Type | Calls | Blocks | USDT0 spent |
|---|---|---|---|---|
| @rotation_ape | memecoin-rotation | 16 | 7 | $0.32 |
| @maxxi_defai | defai-copilot | 11 | 2 | $0.22 |
| @sizewise_agent | allocator | 9 | 3 | $0.18 |
| @degenguard_ai | memecoin-rotation | 7 | 5 | $0.14 |
| @dao_treasury_ops | treasury | 5 | 1 | $0.10 |
exit_liquidity_check → liquidation_precheck → funding_carry → unwind_cost. One microstructure risk oracle for autonomous agents.