Convert a crypto amount
convert_crypto_amountConvert an amount of one cryptocurrency into another currency at the current market rate. Specify the coin ID, amount, and target currency to get the conversion.
Instructions
Convert a quantity of one cryptocurrency into another currency at the current rate, e.g. 2.5 ETH in USD.
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": {
"coin_id": "<coin_id>",
"amount": "<amount>"
},
"name": "convert_crypto_amount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Quantity of the source coin to convert. | |
| coin_id | Yes | Source CoinGecko coin id, e.g. 'ethereum'. | |
| vs_currency | No | Target currency code, e.g. 'usd'. | usd |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Quantity of the source asset converted. | |
| from_coin | Yes | Source CoinGecko coin id. | |
| unit_price | Yes | Price of one source unit in the target currency. | |
| to_currency | Yes | Target currency code. | |
| retrieved_at | Yes | UTC timestamp of the underlying quote. | |
| converted_value | Yes | amount x unit_price. | |
| converted_display | Yes | Formatted converted value. |