Get Hourly Forecast
get_hourly_forecastGet the hourly NWS forecast for a US lat/lon or a named NWS gridpoint such as "EWX/161,98" (~168 hours). Useful for short-term planning, severe-weather windows, or precipitation timing.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"latitude": 40.7128,
"longitude": -74.006
},
"name": "get_hourly_forecast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid_x | No | Grid x for `office` (e.g. 161). | |
| grid_y | No | Grid y for `office` (e.g. 98). | |
| office | No | Forecast office id (3 letters, e.g. "EWX"). Alternative to `gridpoint`; pass with grid_x and grid_y. | |
| latitude | No | US latitude (omit when a gridpoint is given) | |
| gridpoint | No | NWS gridpoint instead of lat/lon, written office/x,y exactly as the forecast office publishes it, e.g. "EWX/161,98" (forecast office EWX, grid x 161, grid y 98). Use this when the question names a gridpoint; lat/lon are then not needed. | |
| longitude | No | US longitude (omit when a gridpoint is given) | |
| max_hours | No | Cap hours returned (default 24) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| periods | Yes | ||
| updated | No | Forecast update timestamp | |
| location | Yes | ||
| period_count | Yes | Number of forecast hours |