Get Weather Forecast
get_forecastRetrieves a daily weather forecast for a city for the next 1–16 days, including high/low temperatures and precipitation chance.
Instructions
Get a daily weather forecast for a city for the next N days (1-16), including high/low temperatures and precipitation chance.
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": "get_forecast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | City name, e.g. 'São Paulo' or 'Tokyo' | |
| days | No | Number of forecast days (1-16) | |
| country | No | Optional ISO-3166 country code to disambiguate, e.g. 'BR' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| location | Yes |