check_pool_viability
Before swapping on Uniswap V3, check if pools have sufficient liquidity
for the intended trade size.
Finds all matching pools for a token pair, assesses trade impact relative
to pool TVL, and recommends the best pool.
Args:
api_key: Your PreFlyte API key (required).
chain: Chain name — "ethereum" or "arbitrum".
token_pair: Token pair separated by "/" — e.g. "WETH/USDC", "WBTC/WETH".
trade_size_usd: Intended swap size in USD.
Returns:
Dictionary with per-pool viability (TVL, trade impact, fee cost),
a recommendation, and data freshness.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"api_key": "<api_key>",
"chain": "<chain>",
"token_pair": "<token_pair>",
"trade_size_usd": "<trade_size_usd>"
},
"name": "check_pool_viability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| api_key | Yes | ||
| token_pair | Yes | ||
| trade_size_usd | Yes |