Skip to main content
Glama
0xReisearch

REI Crypto MCP Server

by 0xReisearch

get_historical_liquidity

Retrieve historical liquidity data for any token on a specific chain to analyze swap availability. Use the token slug (e.g., 'usdt') as input for detailed insights.

Instructions

GET /api/historicalLiquidity/{token}

Provides the available liquidity for swapping from one token to another on a specific chain. Parameters: token: token slug (e.g., 'usdt')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYes

Implementation Reference

  • The handler function for the 'get_historical_liquidity' tool. It is decorated with @mcp.tool() which registers it as an MCP tool. The function takes a token parameter, makes an API request to DefiLlama's historicalLiquidity endpoint, and returns the result as a string.
    @mcp.tool() async def get_historical_liquidity(token: str) -> str: """GET /api/historicalLiquidity/{token} Provides the available liquidity for swapping from one token to another on a specific chain. Parameters: token: token slug (e.g., 'usdt') """ result = await make_request('GET', f'/api/historicalLiquidity/{token}') return str(result)

Other Tools

Related Tools

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/0xReisearch/crypto-mcp-beta'

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