get_weather
Retrieve current and forecast weather for a city without an API key, with optional forecast length from 1 to 16 days.
Instructions
查询城市天气(Open-Meteo,无需 API Key)。
Args: location: 城市名称,例如 北京、Shanghai、Tokyo。 days: 预报天数,1-16。
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_weather"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| location | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |