Convert Currency
convert_currencyConvert an amount between currencies (ECB reference rates). Supported: USD, CNY, EUR, JPY, GBP, CAD, AUD, HKD, TWD, KRW. Note: TWD has no ECB rate and returns null.
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 code | |
| from | Yes | Source currency code | |
| amount | No | Amount to convert |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| to | No | ||
| from | No | ||
| note | No | ||
| rate | No | ||
| amount | No | ||
| converted | No | ||
| to_name_zh | No | ||
| attribution | No | ||
| from_name_zh | No |