get_derivatives_overview
Retrieve summaries and volumes of all derivatives filtered by blockchain chain; customize response by excluding aggregated or breakdown charts for concise data analysis.
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:464-481 (handler)The handler function implementing the get_derivatives_overview tool. It constructs parameters from inputs and makes an async HTTP GET request to the DefiLlama API endpoint '/api/overview/derivatives', returning the JSON response as a string.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:463-463 (registration)The @mcp.tool() decorator registers the get_derivatives_overview function as an MCP tool, using the function signature and docstring for input/output schema.@mcp.tool()
- defillama_server.py:468-475 (schema)Docstring providing the tool description, API endpoint details, and parameter descriptions used by FastMCP to generate the tool schema."""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 """