get_token_price
Get the current USD price of a token to understand its value before executing a swap.
Instructions
Returns the current USD price of a token. Use this before swaps to understand value.
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": {
"token_symbol": "<token_symbol>"
},
"name": "get_token_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain_id | No | Chain ID where the token exists. | |
| token_symbol | Yes | Token symbol (e.g. "ETH", "USDC", "WBTC") or contract address. |