Get ECB exchange rate
get_exchange_rateReturns the European Central Bank's euro reference rate for a currency on a given date (or the last rate before it, on weekends and holidays), and optionally converts an amount to or from euro. Use it for invoices in foreign currency.
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": {
"currency": "<currency>"
},
"name": "get_exchange_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date as YYYY-MM-DD, e.g. the invoice date. Default: today. | |
| amount | No | Optional amount to convert. | |
| currency | Yes | Three-letter currency code, e.g. CHF, USD, CZK. | |
| direction | No | to_eur (default): the amount is in the currency and is converted to euro. from_eur: the amount is in euro. | |
| with_receipt | No | Optional, default false. Set true only when the user asks for a signed receipt of this check for their files. |