Query Weather
query_weather查询全球城市的实时天气和未来几天预报。city城市名中英文均可,days预报天数1~7默认3天。主源Open-Meteo,备源wttr.in。
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": {
"city": "<city>"
},
"name": "query_weather"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | 城市名,中文英文均可,如 "青岛"、"北京"、"Tokyo" | |
| days | No | 预报天数,1 到 7,默认 3 天 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||