get_exchange_rate
Get the latest exchange rate between two currencies and convert an amount. Uses the free Frankfurter API (no API key required). Currency codes must be ISO 4217 codes such as USD, KRW, EUR, JPY, GBP.
Parameters3
| from_currency | string | required | Base currency code (e.g. "USD"). |
| to_currency | string | required | Target currency code (e.g. "KRW"). |
| amount | number | optional | Amount in the base currency to convert. Defaults to 1.0. |
Raw schema
{
"type": "object",
"properties": {
"from_currency": {
"type": "string",
"description": "Base currency code (e.g. \"USD\")."
},
"to_currency": {
"type": "string",
"description": "Target currency code (e.g. \"KRW\")."
},
"amount": {
"default": 1,
"type": "number",
"description": "Amount in the base currency to convert. Defaults to 1.0."
}
},
"required": [
"from_currency",
"to_currency"
],
"additionalProperties": false
}