get_derivatives_overview
Retrieve summaries and volume data for all derivatives across blockchain networks, with options to filter chart data in the response.
Instructions
GET /api/overview/derivatives
Lists all derivatives along summaries of their volumes filtering by chain.
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:463-481 (handler)The main handler function for the 'get_derivatives_overview' tool. It uses the @mcp.tool() decorator for registration and defines input parameters with defaults. It constructs API parameters and calls the shared make_request helper to fetch data from DefiLlama's /api/overview/derivatives endpoint, returning the JSON response as a string.@mcp.tool() async def get_derivatives_overview( exclude_total_data_chart: bool = False, exclude_total_data_chart_breakdown: bool = False ) -> str: """GET /api/overview/derivatives Lists all derivatives along summaries of their volumes filtering by chain. 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/derivatives', params) return str(result)
- defillama_server.py:464-467 (schema)Input schema defined by function parameters: exclude_total_data_chart (bool, default False), exclude_total_data_chart_breakdown (bool, default False). Output is str (API response). Docstring provides further description.async def get_derivatives_overview( exclude_total_data_chart: bool = False, exclude_total_data_chart_breakdown: bool = False ) -> str:
- defillama_server.py:463-463 (registration)The @mcp.tool() decorator registers this function as an MCP tool named 'get_derivatives_overview' (inferred from function name).@mcp.tool()