Nws Get Forecast
nws_get_forecastGet the 7-day NWS forecast (12-hour day/night periods) for a US lat/lon OR a named NWS gridpoint such as "EWX/161,98". Returns named periods (e.g., "Tonight", "Wednesday") with high/low temperature, wind, and a short text forecast. US locations only.
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": "nws_get_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) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| periods | Yes | ||
| updated | No | Forecast update timestamp | |
| location | Yes | ||
| period_count | Yes | Number of forecast periods |