Convert currencies with official reference rates
fx_convertConvert amounts between currencies using ECB daily or World Bank annual-average rates, with method and citations provided.
Instructions
Convert an amount between currencies using ECB daily reference rates (~30 majors, any date since 1999) or, for ~90 other currencies (BBD, XCD, 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.
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 |