Convert an amount between currencies
convert_currencyConvert money between ISO 4217 currencies with daily exchange rates. ECB reference rates (via Frankfurter) are used for USD, EUR, GBP, JPY, CHF, CAD, AUD, CNY, INR, CZK, HUF, ILS, ISK, RON, BRL, MXN, SGD, HKD, NZD, SEK, NOK, DKK, ZAR, TRY, KRW, THB, MYR, IDR, PHP, PLN; other codes such as PKR, AED, SAR or NGN use the free fawazahmed0 currency API. The result says which source answered. Supports historical dates (YYYY-MM-DD).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "convert_currency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ISO 4217 currency code. | EUR |
| date | No | Historical date; omit for the latest rates. | |
| from | No | ISO 4217 currency code. | USD |
| amount | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| to | No | ||
| date | No | ||
| from | No | ||
| rate | No | ||
| error | No | ||
| amount | No | ||
| result | No | ||
| source | No | ecb: European Central Bank via Frankfurter. fawazahmed0: wider daily rates for other codes. |