math_currency_converter_convert
Convert a money amount from one ISO 4217 currency to another using daily end-of-day forex rates. Returns converted result, applied rate, and rate date.
Instructions
Currency Converter. Convert a money amount from one ISO 4217 currency to another using daily end-of-day (EOD) FX rates. Returns success plus a data object with the converted result, the applied rate and its inverse, the rate date, and the resolution path (direct, triangulation through USD, or identity). Rates come from a local cache of EODHD daily forex data; a first-time or stale currency pair triggers an on-demand outbound fetch from EODHD, so results change day to day and the call is not idempotent. Use this for present-day conversion between the 31 supported currencies; use math_currency_converter_history for a multi-day close-price series for charting, and math_unit_converter for non-currency length/mass/volume/speed conversion. Rate-limited (30 req/min anonymous) to protect the upstream API quota.
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": "math_currency_converter_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Source ISO 4217 currency code (3 letters, case-insensitive). Must be one of the 31 supported codes. | |
| to | Yes | Target ISO 4217 currency code (3 letters, case-insensitive). Same 31-code enum as from; equal from/to returns a rate of 1. | |
| amount | No | Amount in the source currency to convert. Must be a finite number; defaults to 1 when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | True when the conversion succeeded. | |
| data | No |