convert_currency
Convert an amount from one currency to another using real-time exchange rates, with no API key required.
Instructions
按实时汇率换算货币(open.er-api.com,无需 API Key)。
Args: amount: 金额。 from_currency: 源货币代码,例如 USD、CNY、EUR。 to_currency: 目标货币代码,例如 JPY、GBP。
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 |
|---|---|---|---|
| amount | Yes | ||
| to_currency | Yes | ||
| from_currency | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |