Skip to main content
Glama
0xReisearch

REI Crypto MCP Server

by 0xReisearch

get_dex_summary

Retrieve detailed summary and historical data on DEX volume for specific protocols, excluding aggregated or broken-down charts as needed.

Instructions

GET /api/summary/dexs/{protocol}

Get summary of dex volume with historical data. Parameters: protocol: protocol slug (e.g., 'uniswap') exclude_total_data_chart: true to exclude aggregated chart from response exclude_total_data_chart_breakdown: true to exclude broken down chart from response

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
exclude_total_data_chartNo
exclude_total_data_chart_breakdownNo
protocolYes

Implementation Reference

  • The main handler function for the 'get_dex_summary' tool. It is registered via the @mcp.tool() decorator and implements the logic to fetch DEX summary data from the DefiLlama Pro API for a specified protocol, handling optional parameters for chart exclusions.
    @mcp.tool() async def get_dex_summary( protocol: str, exclude_total_data_chart: bool = True, exclude_total_data_chart_breakdown: bool = True ) -> str: """GET /api/summary/dexs/{protocol} Get summary of dex volume with historical data. Parameters: protocol: protocol slug (e.g., 'uniswap') exclude_total_data_chart: true to exclude aggregated chart from response exclude_total_data_chart_breakdown: true to exclude broken down chart from response """ params = { 'excludeTotalDataChart': str(exclude_total_data_chart).lower(), 'excludeTotalDataChartBreakdown': str(exclude_total_data_chart_breakdown).lower() } result = await make_request('GET', f'/api/summary/dexs/{protocol}', params) 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