Skip to main content
Glama
0xReisearch

REI Crypto MCP Server

by 0xReisearch

get_derivatives_summary

Retrieve volume details for a specific perpetual protocol to analyze derivatives market data and performance metrics.

Instructions

GET /api/summary/derivatives/{protocol}

Volume Details about a specific perp protocol.

Parameters:
    protocol: protocol slug (e.g., 'hyperliquid')
    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
protocolYes
exclude_total_data_chartNo
exclude_total_data_chart_breakdownNo

Implementation Reference

  • The handler function for the 'get_derivatives_summary' tool. It is decorated with @mcp.tool(), which registers it with the MCP server. The function makes an HTTP request to the DefiLlama API for derivatives summary data for a given protocol and returns the result as a string.
    @mcp.tool()
    async def get_derivatives_summary(
        protocol: str,
        exclude_total_data_chart: bool = False,
        exclude_total_data_chart_breakdown: bool = False
    ) -> str:
        """GET /api/summary/derivatives/{protocol}
        
        Volume Details about a specific perp protocol.
        
        Parameters:
            protocol: protocol slug (e.g., 'hyperliquid')
            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/derivatives/{protocol}', params)
        return str(result)

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