Skip to main content
Glama

Nws Get Forecast

nws_get_forecast
Read-onlyIdempotent

Get 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

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)

Output Schema

NameRequiredDescriptionDefault
periodsYes
updatedNoForecast update timestamp
locationYes
period_countYesNumber of forecast periods

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. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the burden is lower. The description still adds useful context beyond them: the exact 7-day / 12-hour period structure, the shape of each returned period (high/low temperature, wind, short text), and the US-only restriction. It says nothing about units or rate limits, which are the remaining gaps.

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?

Three sentences, each earning its place: the operation and period structure first, the return shape second, the geographic constraint last. No filler or repetition of the title.

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

Completeness5/5

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

For a simple read-only forecast tool with a full-coverage schema and an output schema, this is complete: inputs, return shape, and location constraints are all covered. Nothing an agent needs to invoke it correctly is missing.

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 description coverage is 100% and all six parameters are documented in-schema, including the gridpoint 'office/x,y' format and the omit-lat/lon-when-gridpoint rule. The description only restates the lat/lon-or-gridpoint dichotomy, adding no format or validation detail beyond what the schema already provides.

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

Purpose5/5

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

The description pairs a specific verb and resource ('Get the 7-day NWS forecast') with a precise granularity ('12-hour day/night periods'), which lets an agent distinguish it from an hourly-forecast sibling without opening any schema. The geographic scope ('US locations only') and the two accepted input forms are stated up front.

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

Usage Guidelines4/5

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

It gives clear context for selection: lat/lon for a point, or a named gridpoint such as "EWX/161,98" when a gridpoint is already known, and it excludes non-US locations. It stops short of explicitly naming an alternative tool for hourly or observation data, so there is no explicit when-not routing.

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.