evm_get_pool_info
Retrieves DEX liquidity pool reserves, token prices, total liquidity, and LP token details across EVM chains to assess pool health before adding or removing liquidity.
Instructions
Get liquidity pool information including reserves, price, and LP token details.
Queries DEX pair contract for current pool state. Shows token reserves, exchange rate, total liquidity, and LP token address. Essential before adding/removing liquidity or analyzing pool health. No gas cost.
CRITICAL RULES:
Read-only operation, no transaction
Pool must exist (tokens must have been paired)
Reserves change with every swap
Price calculated from reserve ratio
LP token represents share of pool
PARAMETERS:
chain: EVM chain where pool exists (required)
dex: DEX protocol name (required)
tokenA: First token in pair (required)
tokenB: Second token in pair (required)
EXAMPLES: ✅ Get USDC/WETH pool on Polygon QuickSwap: {chain: "polygon", dex: "quickswap", tokenA: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174", tokenB: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}
OUTPUT: • reserveA, reserveB: Token amounts in pool • priceAtoB, priceBtoA: Exchange rates • lpTokenAddress: LP token contract • totalSupply: Total LP tokens • share: Your pool ownership percentage
SUPPORTED EVM CHAINS (7 networks): • ethereum (Sepolia) - EIP-1559 enabled, ~12s blocks, moderate gas costs • polygon (Amoy) - Low fees, fast finality (~2s), layer 2 • avalanche (Fuji C-Chain) - Sub-second finality, dynamic fees • bsc (BNB Testnet) - 3s blocks, low gas costs, Binance ecosystem • arbitrum (Sepolia) - Optimistic rollup, low fees, Ethereum security • base (Sepolia) - Coinbase layer 2, EIP-1559, low fees • worldchain (World Sepolia) - World Network testnet, EIP-1559
CRITICAL GAS CONSIDERATIONS:
Ethereum: High gas costs, use gas oracle for timing
Polygon/BSC: Very low gas, safe for frequent transactions
Arbitrum/Base: L2 optimizations, ~10-50x cheaper than Ethereum
Avalanche: Dynamic fees, can spike during congestion
Always check gas price before executing transactions
TESTNET TOKENS: All chains use testnet tokens with NO REAL VALUE. Faucets available for all supported networks.
Running on Linux.
LINUX-SPECIFIC NOTES:
Package manager: apt (Ubuntu/Debian), yum (RHEL/CentOS), or pacman (Arch)
Python 3 is typically 'python3' command
GNU tools are standard
Use 'xdg-open' command to open files/applications
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": {
"chain": "<chain>",
"dex": "<dex>",
"tokenA": "<tokenA>",
"tokenB": "<tokenB>"
},
"name": "evm_get_pool_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dex | Yes | DEX name (e.g., "uniswap", "quickswap", "traderjoe", "pancakeswap") | |
| chain | Yes | EVM chain to query | |
| tokenA | Yes | First token address (0x...) | |
| tokenB | Yes | Second token address (0x...) |