get_first_price_record
Retrieve the earliest available price record for specified cryptocurrency tokens to establish historical baselines and analyze initial market entries.
Instructions
GET /coins/prices/first/{coins}
Get earliest timestamp price record for coins.
Parameters:
coins: comma-separated tokens in format {chain}:{address}
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coins | Yes |
Implementation Reference
- defillama_server.py:721-731 (handler)The main handler function for the 'get_first_price_record' tool. It is decorated with @mcp.tool() for registration and implements the logic by making an HTTP GET request to the DefiLlama API endpoint '/coins/prices/first/{coins}' using the shared 'make_request' helper, then returns the result as a string.@mcp.tool() async def get_first_price_record(coins: str) -> str: """GET /coins/prices/first/{coins} Get earliest timestamp price record for coins. Parameters: coins: comma-separated tokens in format {chain}:{address} """ result = await make_request('GET', f'/coins/prices/first/{coins}') return str(result)