convert_currency
Convert amounts between currencies using official central bank exchange rates for today's rate or historical dates back to 1999.
Instructions
Convert an amount between currencies using official central bank exchange rates.
Args:
amount: Amount to convert (e.g. 100.0).
from_currency: Source currency ISO 4217 code (e.g. "USD", "EUR", "GBP", "JPY").
to_currency: Target currency ISO 4217 code (e.g. "INR", "CAD", "AUD").
date: "latest" for today's rate (default), or a date in YYYY-MM-DD format
for a historical rate (data goes back to 1999).
Returns:
Converted amount, exchange rate used, and the date the rate was recorded.
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": {
"amount": "<amount>",
"from_currency": "<from_currency>",
"to_currency": "<to_currency>"
},
"name": "convert_currency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | latest | |
| amount | Yes | ||
| to_currency | Yes | ||
| from_currency | Yes |