Exchange rate
get_exchange_rateOfficial reference exchange rate of a currency pair (European Central Bank, Federal Reserve or Bank of England, published once per business day), for the latest date or a past date, with an optional amount to convert. Not a live market quote.
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": {
"base": "<base>",
"quote": "<quote>"
},
"name": "get_exchange_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Currency to convert from, ISO 4217 code. | |
| date | No | Business day (YYYY-MM-DD). Without it, the latest published rate. On a day without a fixing, the last rate before it. | |
| quote | Yes | Currency to convert to, ISO 4217 code. | |
| amount | No | Amount of the base currency to convert. |