get_dex_overview
Retrieve a list of decentralized exchanges (DEXs) with summaries of trading volumes and historical data. Customize responses by excluding aggregated or breakdown charts for focused insights.
Instructions
GET /api/overview/dexs
List all dexs along with summaries of their volumes and dataType history data.
Parameters:
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
| Name | Required | Description | Default |
|---|---|---|---|
| exclude_total_data_chart | No | ||
| exclude_total_data_chart_breakdown | No |
Implementation Reference
- defillama_server.py:747-764 (handler)The handler function for the 'get_dex_overview' tool. It is decorated with @mcp.tool() for registration and uses the function docstring for schema. Makes a GET request to the DefiLlama API endpoint '/api/overview/dexs' with optional parameters to exclude charts.async def get_dex_overview( exclude_total_data_chart: bool = True, exclude_total_data_chart_breakdown: bool = True ) -> str: """GET /api/overview/dexs List all dexs along with summaries of their volumes and dataType history data. Parameters: 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', '/api/overview/dexs', params) return str(result)
- defillama_server.py:747-747 (registration)The @mcp.tool() decorator registers the get_dex_overview function as an MCP tool.async def get_dex_overview(
- defillama_server.py:748-758 (schema)Type hints and docstring define the input schema (parameters) and output as str for the tool.exclude_total_data_chart: bool = True, exclude_total_data_chart_breakdown: bool = True ) -> str: """GET /api/overview/dexs List all dexs along with summaries of their volumes and dataType history data. Parameters: exclude_total_data_chart: true to exclude aggregated chart from response exclude_total_data_chart_breakdown: true to exclude broken down chart from response """