get_forecast
Retrieve weather forecasts for Chinese cities. Specify location as city name, coordinates, or ID, and set forecast duration from 3 to 30 days.
Instructions
获取指定城市的天气预报。
Args:
location: 城市名称、经纬度("lng,lat")或 Location ID。
days: 预报天数,支持 3 / 7 / 10 / 15 / 30 天,默认 7 天。
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": {
"location": "<location>"
},
"name": "get_forecast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| location | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |