Getweatherbycity
getWeatherByCityQueries weather for a specified city using optional start and end dates, defaulting to today and tomorrow when dates are omitted.
Instructions
城市天气查询 - 根据城市名查询天气信息。支持武汉、北京、上海等主要城市。如果不提供日期,默认查询今天和明天的天气数据
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_name": "<city_name>"
},
"name": "getWeatherByCity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | ||
| city_name | Yes | ||
| start_date | No |