Skip to main content
Glama
0xReisearch

REI Crypto MCP Server

by 0xReisearch

get_options_overview_by_chain

Retrieve options DEX summaries with volume and historical data for a specific blockchain. Filter by data type and customize chart outputs.

Instructions

GET /api/overview/options/{chain}

List all options dexs along with summaries of their volumes and dataType history data filtering by chain.

Parameters:
    chain: chain name (e.g., 'ethereum')
    exclude_total_data_chart: true to exclude aggregated chart from response
    exclude_total_data_chart_breakdown: true to exclude broken down chart from response
    data_type: desired data type (default: 'dailyNotionalVolume')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYes
exclude_total_data_chartNo
exclude_total_data_chart_breakdownNo
data_typeNodailyNotionalVolume

Implementation Reference

  • The handler function for the get_options_overview_by_chain tool, registered via @mcp.tool() decorator. It constructs parameters and makes an API request to DefiLlama's /api/overview/options/{chain} endpoint to retrieve options DEX summaries filtered by chain.
    @mcp.tool()
    async def get_options_overview_by_chain(
        chain: str,
        exclude_total_data_chart: bool = True,
        exclude_total_data_chart_breakdown: bool = True,
        data_type: Literal['dailyPremiumVolume', 'dailyNotionalVolume'] = 'dailyNotionalVolume'
    ) -> str:
        """GET /api/overview/options/{chain}
        
        List all options dexs along with summaries of their volumes and dataType history data filtering by chain.
        
        Parameters:
            chain: chain name (e.g., 'ethereum')
            exclude_total_data_chart: true to exclude aggregated chart from response
            exclude_total_data_chart_breakdown: true to exclude broken down chart from response
            data_type: desired data type (default: 'dailyNotionalVolume')
        """
        params = {
            'excludeTotalDataChart': str(exclude_total_data_chart).lower(),
            'excludeTotalDataChartBreakdown': str(exclude_total_data_chart_breakdown).lower(),
            'dataType': data_type
        }
        result = await make_request('GET', f'/api/overview/options/{chain}', 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