Skip to main content
Glama
0xReisearch

REI Crypto MCP Server

by 0xReisearch

get_token_protocols

Retrieve token distribution across DeFi protocols by entering a token symbol to see holdings in each protocol.

Instructions

GET /api/tokenProtocols/{symbol}

Lists the amount of a certain token within all protocols. Parameters: symbol: token slug (e.g., 'usdt')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes

Implementation Reference

  • The handler function for the 'get_token_protocols' tool. It is decorated with @mcp.tool() for registration and implements the logic to fetch data from the DefiLlama API endpoint /api/tokenProtocols/{symbol} using the make_request helper. The function signature and docstring define the input schema (symbol: str).
    @mcp.tool() async def get_token_protocols(symbol: str) -> str: """GET /api/tokenProtocols/{symbol} Lists the amount of a certain token within all protocols. Parameters: symbol: token slug (e.g., 'usdt') """ result = await make_request('GET', f'/api/tokenProtocols/{symbol}') 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