汇率换算
currency_convert按最新或指定日期汇率换算两种货币金额,货币用 ISO 三字母代码。Example: {"amount":100,"from":"USD","to":"CNY"}
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"to": "CNY",
"from": "USD",
"amount": 100
},
"name": "currency_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 目标货币代码,如 CNY、EUR、HKD | |
| date | No | 历史日期 YYYY-MM-DD,留空取最新 | |
| from | Yes | 源货币代码,如 USD、CNY、JPY | |
| amount | No | 金额,默认 1 |