Convert at the ECB rate
convert_currencyThe European Central Bank reference rate for a currency on a date (the last published rate on or before it), and the converted amount.
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>",
"date": "<date>"
},
"name": "convert_currency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ISO 4217 code to convert into, e.g. EUR | |
| date | Yes | YYYY-MM-DD, usually the receipt date | |
| from | Yes | ISO 4217 code of the amount's currency, e.g. USD | |
| amount | Yes | The amount to convert, in the from currency |