get_dex_liquidity
Analyze token liquidity across major DEXes to assess depth, identify top pools, and estimate slippage for trading decisions.
Instructions
Get DEX liquidity analysis for a token across major exchanges.
Args: token_address: The token contract address (0x...) chain: Blockchain network. Options: ethereum, base, polygon, bsc
Returns: Liquidity depth, top pools, and slippage estimates.
Price: $0.20
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_address | Yes | ||
| chain | No | ethereum |
Implementation Reference
- coinrailz_mcp/__init__.py:331-347 (handler)The `get_dex_liquidity` function is defined and registered as an MCP tool using the `@mcp.tool()` decorator. It fetches DEX liquidity data by calling the `call_coinrailz_service` helper function with the "dex-liquidity" endpoint.
@mcp.tool() async def get_dex_liquidity(token_address: str, chain: str = "ethereum") -> str: """ Get DEX liquidity analysis for a token across major exchanges. Args: token_address: The token contract address (0x...) chain: Blockchain network. Options: ethereum, base, polygon, bsc Returns: Liquidity depth, top pools, and slippage estimates. Price: $0.20 """ payload = {"tokenAddress": token_address, "chain": chain} result = await call_coinrailz_service("dex-liquidity", payload) return json.dumps(result, indent=2)