Skip to main content
Glama
0xReisearch

REI Crypto MCP Server

by 0xReisearch

get_options_overview

Retrieve summaries of options DEX volumes and historical data to analyze market activity and trends across platforms.

Instructions

GET /api/overview/options

List all options 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
    data_type: desired data type (default: 'dailyNotionalVolume')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
exclude_total_data_chartNo
exclude_total_data_chart_breakdownNo
data_typeNodailyNotionalVolume

Implementation Reference

  • The handler function for the 'get_options_overview' tool. It is registered via @mcp.tool() decorator and implements the logic to fetch options DEX overview data from the DefiLlama API by constructing parameters and calling make_request. The function signature and docstring define the input schema.
    async def get_options_overview(
        exclude_total_data_chart: bool = True,
        exclude_total_data_chart_breakdown: bool = True,
        data_type: Literal['dailyPremiumVolume', 'dailyNotionalVolume'] = 'dailyNotionalVolume'
    ) -> str:
        """GET /api/overview/options
        
        List all options 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
            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', '/api/overview/options', params)
        return str(result)
  • The @mcp.tool() decorator registers the get_options_overview function as an MCP tool.
    async def get_options_overview(
  • The docstring provides the description and parameter details serving as the tool schema documentation.
    """GET /api/overview/options
    
    List all options 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
        data_type: desired data type (default: 'dailyNotionalVolume')

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