Convert currencies with official reference rates
fx_convertConvert an amount between currencies using ECB daily reference rates (~30 majors, any date since 1999), the legal US dollar peg for currencies with a sourced hard peg (BBD, XCD, BZD, AWG, BMD, KYD, SAR, QAR, OMR), which is exact and cites the issuing authority, or, for ~90 other currencies (JMD, KES, …), official annual-average rates from the World Bank. With the method and citations stated explicitly. Pass date='YYYY-MM-DD' for daily or 'YYYY' for annual-average conversion. Beside the numeric rate, rate_decimal gives the rate as a decimal string (the upstream ECB figure, or a computed rate rounded once to at least 12 significant digits), and on a bridged rate each leg names its kind (identity, peg, ecb or wb).
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": "<from>",
"to": "<to>"
},
"name": "fx_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 3-letter ISO code, e.g. 'BBD'. | |
| date | No | 'YYYY-MM-DD' (daily, ECB set) or 'YYYY' (annual average). Default: latest. | |
| from | Yes | 3-letter ISO code, e.g. 'USD'. | |
| amount | Yes |