Convert currency
convert_currencyConvert an amount from one currency into one or more others at live market rates, shown as an interactive card. Use ISO 4217 codes (USD, EUR, INR, JPY…). Covers 166 currencies, refreshed hourly.
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 | Target currency codes, e.g. ["EUR", "INR"]. | |
| from | Yes | Source currency code, e.g. "USD". | |
| amount | No | Amount in the source currency. Defaults to 1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Source currency code. | |
| amount | Yes | The amount converted. | |
| source | Yes | Which rate feed answered. | |
| results | Yes | ||
| updated | Yes | When the rates were published (ISO 8601). | |
| fromFlag | Yes | ||
| fromName | Yes | ||
| zeroDecimal | Yes | Codes shown without decimals. |