get_emission_data
Retrieve emission data for a specific crypto protocol by inputting the protocol slug. Simplifies access to token emissions without managing API keys.
Instructions
GET /api/emission/{protocol}
Unlocks data for a given token/protocol.
Parameters:
protocol: protocol slug (e.g., 'aave')
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| protocol | Yes |
Implementation Reference
- defillama_server.py:257-267 (handler)The handler function for the 'get_emission_data' tool. It is decorated with @mcp.tool() for automatic registration in FastMCP. The function takes a protocol parameter, makes a GET request to the DefiLlama API endpoint /api/emission/{protocol}, and returns the result as a string.@mcp.tool() async def get_emission_data(protocol: str) -> str: """GET /api/emission/{protocol} Unlocks data for a given token/protocol. Parameters: protocol: protocol slug (e.g., 'aave') """ result = await make_request('GET', f'/api/emission/{protocol}') return str(result)