weather_query_by_weekday
Query a city's weather for the next specified weekday to plan ahead, returning forecast details in Markdown or JSON.
Instructions
查询指定城市在下一个指定星期几的天气情况。
这个工具可以查询下一个指定星期几(如本周六、本周日)的天气预报。
Args: params (WeekdayQueryInput): 已验证的输入参数,包含: - city (str): 城市名称(例如:'北京', '上海', 'New York') - target_weekday (str): 目标星期几(例如:'Saturday', 'Sunday', 'Monday') - response_format (ResponseFormat): 输出格式,默认为markdown
Returns: str: 格式化的天气信息,包含与weather_query_by_days相同的详细信息
Examples: - 查询本周六的天气: city="北京", target_weekday="Saturday" - 查询本周日的天气: city="上海", target_weekday="Sunday" - 查询下周一的天气: city="Guangzhou", target_weekday="Monday"
Error Handling: - 如果城市名称或星期几无效,返回相应的验证错误 - 如果API请求失败,返回相应的错误信息
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": {
"params": "<params>"
},
"name": "weather_query_by_weekday"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |