Query Exchange Rate
query_exchange_rate查询实时汇率并可做金额换算。base基准货币(代码或中文名),target目标货币,留空返回常用货币汇率;amount可选换算金额。主源Frankfurter(ECB),备源open.er-api.com。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "query_exchange_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | 基准货币,代码或中文名均可,默认美元 | USD |
| amount | No | 可选,要换算的金额 | |
| target | No | 目标货币,代码或中文名均可;留空返回常用货币汇率 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||