Skip to main content
Glama
tdnupe3

Coin Railz MCP Server

by tdnupe3

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
NameRequiredDescriptionDefault
token_addressYes
chainNoethereum

Implementation Reference

  • 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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tdnupe3/mcp-server-coinrailz'

If you have feedback or need assistance with the MCP directory API, please join our Discord server