Get fx rate
get_fx_rateDaily ECB reference rate for converting one currency into another on a given date, cached locally. book_invoice applies this automatically for a foreign-currency invoice, so you normally only need this to check a figure. The ECB publishes on business days, so a weekend date resolves to the previous publication and rate_date says which was used.
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": {
"date": "<date>",
"from_currency": "<from_currency>"
},
"name": "get_fx_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date to price, YYYY-MM-DD (normally the invoice date) | |
| to_currency | No | Booking currency, default 'EUR' | |
| from_currency | Yes | Invoice currency, e.g. 'USD' |