Skip to main content
Glama
0xReisearch

REI Crypto MCP Server

by 0xReisearch

get_fdv_performance

Analyze category performance in crypto by retrieving weighted market cap charts for specific periods (7, 30, ytd, 365) using tailored narratives and data.

Instructions

GET /fdv/performance/{period}

Get chart of narratives based on category performance (with individual coins weighted by mcap). Parameters: period: One of ['7', '30', 'ytd', '365']

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodYes

Implementation Reference

  • The tool handler function decorated with @mcp.tool(), which registers it and defines the input schema via type hints. It fetches FDV performance data from DefiLlama API for the given period and returns the result as string.
    @mcp.tool() async def get_fdv_performance(period: Literal['7', '30', 'ytd', '365']) -> str: """GET /fdv/performance/{period} Get chart of narratives based on category performance (with individual coins weighted by mcap). Parameters: period: One of ['7', '30', 'ytd', '365'] """ if period not in ['7', '30', 'ytd', '365']: raise ValueError("Period must be one of: '7', '30', 'ytd', '365'") result = await make_request('GET', f'/fdv/performance/{period}') return str(result)
  • The @mcp.tool() decorator registers the get_fdv_performance function with the FastMCP server.
    @mcp.tool()
  • Input schema defined by the function parameter: period as Literal['7', '30', 'ytd', '365'], output str.
    async def get_fdv_performance(period: Literal['7', '30', 'ytd', '365']) -> str:

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