Convert an amount between currencies
convert_currencyConvert an amount between currencies using the latest exchange rate or a specific past date, returning the rate used and converted amount.
Instructions
Converts an amount from one currency to another using the latest rate, or the rate on a past date if 'date' is given. Returns the rate used, the given amount, and the converted amount. Starter plan and above (any paid plan).
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": {
"from": "<from>",
"to": "<to>"
},
"name": "convert_currency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Currency code to convert to, e.g. 'EUR'. | |
| date | No | Optional past date (YYYY-MM-DD) to convert at that day's rate instead of the latest rate. | |
| from | Yes | Currency code to convert from, e.g. 'USD'. | |
| amount | No | Amount to convert. Must be greater than 0. Default is 1.0. |