Skip to main content
Glama

Get Hourly Forecast

get_hourly_forecast
Read-onlyIdempotent

Get 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

NameRequiredDescriptionDefault
grid_xNoGrid x for `office` (e.g. 161).
grid_yNoGrid y for `office` (e.g. 98).
officeNoForecast office id (3 letters, e.g. "EWX"). Alternative to `gridpoint`; pass with grid_x and grid_y.
latitudeNoUS latitude (omit when a gridpoint is given)
gridpointNoNWS 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.
longitudeNoUS longitude (omit when a gridpoint is given)
max_hoursNoCap hours returned (default 24)

Output Schema

NameRequiredDescriptionDefault
periodsYes
updatedNoForecast update timestamp
locationYes
period_countYesNumber of forecast hours

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / grid_x
      Added value: +{
      +  "description": "Grid x for `office` (e.g. 161).",
      +  "type": "number"
      +}
    • addedInput schema / properties / grid_y
      Added value: +{
      +  "description": "Grid y for `office` (e.g. 98).",
      +  "type": "number"
      +}
    • addedInput schema / properties / gridpoint
      Added value: +{
      +  "description": "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.",
      +  "type": "string"
      +}
    • changedInput schema / properties / latitude / description
      Previous value: -"US latitude"New value: +"US latitude (omit when a gridpoint is given)"
    • changedInput schema / properties / longitude / description
      Previous value: -"US longitude"New value: +"US longitude (omit when a gridpoint is given)"
    • addedInput schema / properties / office
      Added value: +{
      +  "description": "Forecast office id (3 letters, e.g. \"EWX\"). Alternative to `gridpoint`; pass with grid_x and grid_y.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "latitude",
      -  "longitude"
      -]New value: +[]
    • changedOutput schema / properties / location / properties / latitude / description
      Previous value: -"Input latitude"New value: +"Input latitude (absent when the forecast was requested by gridpoint)"
    • changedOutput schema / properties / location / properties / longitude / description
      Previous value: -"Input longitude"New value: +"Input longitude (absent when the forecast was requested by gridpoint)"
    • changedOutput schema / properties / location / required
      Previous value: -[
      -  "latitude",
      -  "longitude"
      -]New value: +[]
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "latitude": 40.7128,
      +    "longitude": -74.006
      +  },
      +  {
      +    "latitude": 39.7392,
      +    "longitude": -104.9903,
      +    "max_hours": 48
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "location": {
      +      "properties": {
      +        "city": {
      +          "description": "Nearest city name",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "grid": {
      +          "description": "NWS grid ID and coordinates",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "latitude": {
      +          "description": "Input latitude",
      +          "type": "number"
      +        },
      +        "longitude": {
      +          "description": "Input longitude",
      +          "type": "number"
      +        },
      +        "radar_station": {
      +          "description": "Nearest radar station",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "state": {
      +          "description": "State abbreviation",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "timezone": {
      +          "description": "IANA timezone",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "latitude",
      +        "longitude"
      +      ],
      +      "type": "object"
      +    },
      +    "period_count": {
      +      "description": "Number of forecast hours",
      +      "type": "number"
      +    },
      +    "periods": {
      +      "items": {
      +        "properties": {
      +          "detailed": {
      +            "description": "Detailed forecast text",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "end": {
      +            "description": "End time ISO 8601",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "is_daytime": {
      +            "description": "Daytime period flag",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "name": {
      +            "description": "Period name (e.g. Tonight)",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "precip_chance_pct": {
      +            "description": "Precipitation probability",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "short": {
      +            "description": "Short forecast text",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "start": {
      +            "description": "Start time ISO 8601",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "temperature": {
      +            "description": "Temperature in unit",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "temperature_unit": {
      +            "description": "F or C",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "wind": {
      +            "description": "Wind speed and direction",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "updated": {
      +      "description": "Forecast update timestamp",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "location",
      +    "period_count",
      +    "periods"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the safety profile needs no restatement. The description adds genuine context beyond that: the ~168-hour ceiling on the forecast window and, via examples, the default cap of 24 hours. It says nothing about rate limits, auth, or data freshness beyond annotations, so it is useful but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences: capability and horizon first, then use cases. No filler, and the input-mode examples are embedded rather than listed verbosely.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool accepts two alternative addressing schemes and an output schema exists, so return-value explanation is not needed; the description covering both input modes plus the hour ceiling is close to sufficient. The remaining gap is routing versus the similar sibling nws_get_forecast and how an agent obtains a gridpoint if it only has lat/lon.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and every parameter (office/grid_x/grid_y/gridpoint vs latitude/longitude, max_hours default) is already documented in the schema with examples. The description repeats the gridpoint format example but adds no new meaning such as mutual exclusion rules or units.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get the hourly NWS forecast') plus the supported input forms (US lat/lon or named gridpoint like "EWX/161,98") and horizon (~168 hours). It does not distinguish this from the sibling nws_get_forecast, so an agent cannot tell from the description alone which forecast tool to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Offers scenario hints ('short-term planning, severe-weather windows, or precipitation timing') which imply when the hourly product is appropriate, but gives no when-not guidance and names no alternative tool for cases like daily/multi-day forecasts or non-US coordinates (beyond the implicit 'US' restriction).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.