get_token_info
Retrieve detailed token information including socials, websites, and descriptions for DeFi trading analysis and decision-making.
Instructions
Get detailed token information including socials, websites, and description
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": {
"network": "<network>",
"address": "<address>"
},
"name": "get_token_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | Yes | Network ID (e.g., 'eth', 'bsc', 'polygon_pos') | |
| address | Yes | Token contract address |
Implementation Reference
- Core implementation handler that performs the actual HTTP fetch to CoinGecko's onchain API endpoint for detailed token information.
async getTokenInfo(network, address) { try { const url = `${this.baseUrl}/networks/${network}/tokens/${address}/info`; const response = await fetch(url, { headers: { 'x-cg-demo-api-key': this.apiKey } }); if (!response.ok) { throw new Error(`HTTP ${response.status}: ${response.statusText}`); } return await response.json(); } catch (error) { throw new Error(`Failed to get token info: ${error.message}`); } }