convert_currency
Convert an amount between two currencies at live or historical rates. Unsupported currencies are refused.
Instructions
Convert an amount between two Frankfurter-supported currencies at the latest rate or a pinned historical date ("YYYY-MM-DD"; non-trading days fall back to the prior trading day and the response says so). Unsupported currencies are refused with the supported list.
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_currency": "<from_currency>",
"to_currency": "<to_currency>"
},
"name": "convert_currency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | latest | |
| amount | Yes | ||
| to_currency | Yes | ||
| from_currency | Yes |