get_forecast
Avoid weather surprises by retrieving a 5-day forecast for any location worldwide using city name or coordinates.
Instructions
Get a 5-day weather forecast for any location worldwide, by city name or coordinates
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_forecast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | metric = °C and m/s (default), imperial = °F and mph | |
| latitude | No | Latitude, used only when no location name is given | |
| location | No | City name, optionally with country/state code. Examples: "Tokyo", "Paris,FR", "Springfield,US-IL". Preferred over coordinates. | |
| longitude | No | Longitude, used only when no location name is given |