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}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"coins": "<coins>"
},
"name": "get_first_price_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coins | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | 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)