Skip to main content
Glama
0xReisearch

REI Crypto MCP Server

by 0xReisearch

get_protocol_details

Retrieve historical Total Value Locked (TVL) data and token-chain breakdowns for a specific protocol using its slug (e.g., 'aave').

Instructions

GET /api/protocol/{protocol}

Get historical TVL of a protocol and breakdowns by token and chain. Parameters: protocol: protocol slug (e.g., 'aave')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
protocolYes

Implementation Reference

  • The handler function for the 'get_protocol_details' tool. It is decorated with @mcp.tool() which registers it as an MCP tool. The function makes an API request to DefiLlama's /api/protocol/{protocol} endpoint to retrieve historical TVL and breakdowns by token and chain for the specified protocol.
    @mcp.tool() async def get_protocol_details(protocol: str) -> str: """GET /api/protocol/{protocol} Get historical TVL of a protocol and breakdowns by token and chain. Parameters: protocol: protocol slug (e.g., 'aave') """ result = await make_request('GET', f'/api/protocol/{protocol}') return str(result)
  • The @mcp.tool() decorator registers the get_protocol_details function as an MCP tool.
    @mcp.tool()
  • The function signature defines the input schema (protocol: str) and return type (str). The docstring provides detailed description, API endpoint, and parameter example.
    async def get_protocol_details(protocol: str) -> str: """GET /api/protocol/{protocol} Get historical TVL of a protocol and breakdowns by token and chain. Parameters: protocol: protocol slug (e.g., 'aave') """

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