Skip to main content
Glama

Nws Get Observation History

nws_get_observation_history
Read-only

Get a station's recent observation history, newest first — the trend behind the single latest reading nws_get_observations returns (is pressure falling, is the wind picking up). NWS keeps about the last 7 days per station, and a busy airport station reports as often as every 5 minutes, so a day can run past 100 observations: narrow with start (inclusive) and end (exclusive), and page back to older observations with nextCursor. Takes a station ID; use nws_find_stations to find one near a coordinate.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "station_id": "<station_id>"
    },
    "name": "nws_get_observation_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoTime to stop before (exclusive), in the same format as start. Omit to start from the most recent observation.
limitNoObservations per page, newest first. A page holds at most 100; a larger limit is served as 100 and reported through requestedLimit and effectiveLimit. When older observations remain in the window, the response carries nextCursor; pass it back as cursor for them.
startNoEarliest observation time to include (inclusive), as an ISO 8601 date-time with seconds and an offset (e.g., "2026-09-30T00:00:00Z" or "2026-09-29T17:00:00-07:00"). Omit to reach back as far as NWS keeps, about 7 days.
cursorNoOpaque continuation token from a previous response's nextCursor. Omit for the first page. It carries that query's start, end, and applied limit, so those inputs apply to the first page only. Each page continues from just before the oldest observation of the one before it, so pages neither repeat nor skip an observation.
station_idYesObservation station ID (e.g., "KSEA"), case-insensitive. Use nws_find_stations to discover station IDs near a coordinate.

Output Schema

NameRequiredDescriptionDefault
capNoThe page limit this page holds, when truncated is true
errorNoPresent when the call failed. Absent on success.
shownNoNumber of observations returned in this page
noticeNoGuidance when the requested limit exceeded the page cap, when the window held no observations (NWS keeps about the last 7 days), or when older observations remain beyond this page.
timeZoneNoStation time zone when known
stationIdNoObservation station ID, uppercased
truncatedNoTrue when older observations remain in the window past this page; continue with nextCursor.
nextCursorNoOpaque token for the next, older page — pass it back as cursor. Present only when older observations remain in the window; omitted on the last page.
stationNameNoStation name
observationsNoObservations in the window, newest first
effectiveLimitNoThe page size applied instead of requestedLimit; continued pages keep it. Absent when the limit was within the cap.
requestedLimitNoThe limit asked for, when it exceeded the 100-observation page cap; absent otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / end / pattern
      Previous value: -"^\\s*(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,6})?(?:Z|[+-]\\d{2}:\\d{2})\\s*)?$"New value: +"^\\s*(?:\\d{4}-\\d{2}-\\d{2}[Tt]\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,6})?(?:[Zz]|[+-]\\d{2}:?\\d{2})\\s*)?$"
    • changedInput schema / properties / limit / description
      Previous value: -"Observations per page, newest first. A page holds at most 100; a larger limit (up to 10000) is served as 100 and reported through requestedLimit and effectiveLimit. When older observations remain in the window, the response carries nextCursor; pass it back as cursor for them."New value: +"Observations per page, newest first. A page holds at most 100; a larger limit is served as 100 and reported through requestedLimit and effectiveLimit. When older observations remain in the window, the response carries nextCursor; pass it back as cursor for them."
    • changedInput schema / properties / limit / maximum
      Previous value: -10000New value: +9007199254740991
    • changedInput schema / properties / start / pattern
      Previous value: -"^\\s*(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,6})?(?:Z|[+-]\\d{2}:\\d{2})\\s*)?$"New value: +"^\\s*(?:\\d{4}-\\d{2}-\\d{2}[Tt]\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,6})?(?:[Zz]|[+-]\\d{2}:?\\d{2})\\s*)?$"
    • changedOutput schema / properties / observations / items / properties / barometricPressurePa / description
      Previous value: -"Barometric pressure in Pascals"New value: +"Altimeter setting in Pascals: on METAR stations the A group, in hundredths of inHg (A3013 → 102030 Pa); stations in other networks, such as CWOP, fill it with their own reading. Not sea-level pressure (seaLevelPressurePa) — the two differ by several hPa at high-elevation stations."
    • addedOutput schema / properties / observations / items / properties / seaLevelPressurePa
      Added value: +{
      +  "description": "Sea-level pressure in Pascals, from the SLP remark of an hourly METAR (SLP129 → 1012.9 hPa, 101290 Pa). Null on 5-minute records and whenever NWS sends none. Read a pressure trend from one of the two fields, never a mix.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / observations / items / required
      Previous value: -[
      -  "timestamp",
      -  "textDescription",
      -  "temperatureC",
      -  "dewpointC",
      -  "windSpeedKmh",
      -  "windDirectionDeg",
      -  "windGustKmh",
      -  "barometricPressurePa",
      -  "visibilityM",
      -  "relativeHumidityPct",
      -  "heatIndexC",
      -  "windChillC",
      -  "precipitationLastHourMm",
      -  "precipitationLast3HoursMm",
      -  "precipitationLast6HoursMm",
      -  "cloudLayers"
      -]New value: +[
      +  "timestamp",
      +  "textDescription",
      +  "temperatureC",
      +  "dewpointC",
      +  "windSpeedKmh",
      +  "windDirectionDeg",
      +  "windGustKmh",
      +  "barometricPressurePa",
      +  "seaLevelPressurePa",
      +  "visibilityM",
      +  "relativeHumidityPct",
      +  "heatIndexC",
      +  "windChillC",
      +  "precipitationLastHourMm",
      +  "precipitationLast3HoursMm",
      +  "precipitationLast6HoursMm",
      +  "cloudLayers"
      +]
  2. Changed8 schema fields changed
    • changedOutput schema / properties / observations / items / properties / dewpointC / description
      Previous value: -"Dewpoint in Celsius"New value: +"Dewpoint in Celsius, to one decimal"
    • changedOutput schema / properties / observations / items / properties / heatIndexC / description
      Previous value: -"Heat index in Celsius"New value: +"Heat index in Celsius, to one decimal"
    • addedOutput schema / properties / observations / items / properties / precipitationLast3HoursMm
      Added value: +{
      +  "description": "Precipitation in the past 3 hours in mm, to 0.1 mm, carried by the hourly reports nearest 03, 09, 15, and 21 UTC. 0 is a trace (under 0.01 in); null means no amount was reported.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / observations / items / properties / precipitationLast6HoursMm
      Added value: +{
      +  "description": "Precipitation in the past 6 hours in mm, to 0.1 mm, carried by the hourly reports nearest 00, 06, 12, and 18 UTC. 0 is a trace (under 0.01 in); null means no amount was reported.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / observations / items / properties / precipitationLastHourMm
      Added value: +{
      +  "description": "Precipitation in the past hour in mm, to 0.1 mm. 0 is a trace (under 0.01 in), not a dry hour; null means no amount was reported, the usual value for a dry hour and on 5-minute reports.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / observations / items / properties / temperatureC / description
      Previous value: -"Temperature in Celsius"New value: +"Temperature in Celsius, to one decimal (e.g., 8.3)"
    • changedOutput schema / properties / observations / items / properties / windChillC / description
      Previous value: -"Wind chill in Celsius"New value: +"Wind chill in Celsius, to one decimal"
    • changedOutput schema / properties / observations / items / required
      Previous value: -[
      -  "timestamp",
      -  "textDescription",
      -  "temperatureC",
      -  "dewpointC",
      -  "windSpeedKmh",
      -  "windDirectionDeg",
      -  "windGustKmh",
      -  "barometricPressurePa",
      -  "visibilityM",
      -  "relativeHumidityPct",
      -  "heatIndexC",
      -  "windChillC",
      -  "cloudLayers"
      -]New value: +[
      +  "timestamp",
      +  "textDescription",
      +  "temperatureC",
      +  "dewpointC",
      +  "windSpeedKmh",
      +  "windDirectionDeg",
      +  "windGustKmh",
      +  "barometricPressurePa",
      +  "visibilityM",
      +  "relativeHumidityPct",
      +  "heatIndexC",
      +  "windChillC",
      +  "precipitationLastHourMm",
      +  "precipitationLast3HoursMm",
      +  "precipitationLast6HoursMm",
      +  "cloudLayers"
      +]
  3. Changed12 schema fields changed
    • changedInput schema / properties / cursor / description
      Previous value: -"Opaque continuation token from a previous response's nextCursor. Omit for the first page. It carries that query's start, end, and limit, so those inputs apply to the first page only. Each page continues from just before the oldest observation of the one before it, so pages neither repeat nor skip an observation."New value: +"Opaque continuation token from a previous response's nextCursor. Omit for the first page. It carries that query's start, end, and applied limit, so those inputs apply to the first page only. Each page continues from just before the oldest observation of the one before it, so pages neither repeat nor skip an observation."
    • addedInput schema / properties / end / pattern
      Added value: +"^\\s*(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,6})?(?:Z|[+-]\\d{2}:\\d{2})\\s*)?$"
    • changedInput schema / properties / limit / description
      Previous value: -"Observations per page (1-100), newest first. When a page fills the limit, pass its nextCursor back as cursor for older observations."New value: +"Observations per page, newest first. A page holds at most 100; a larger limit (up to 10000) is served as 100 and reported through requestedLimit and effectiveLimit. When older observations remain in the window, the response carries nextCursor; pass it back as cursor for them."
    • changedInput schema / properties / limit / maximum
      Previous value: -100New value: +10000
    • addedInput schema / properties / start / pattern
      Added value: +"^\\s*(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,6})?(?:Z|[+-]\\d{2}:\\d{2})\\s*)?$"
    • addedInput schema / properties / station_id / pattern
      Added value: +"^\\s*[A-Za-z0-9]+\\s*$"
    • changedOutput schema / properties / cap / description
      Previous value: -"The page limit this page filled, when truncated is true"New value: +"The page limit this page holds, when truncated is true"
    • addedOutput schema / properties / effectiveLimit
      Added value: +{
      +  "description": "The page size applied instead of requestedLimit; continued pages keep it. Absent when the limit was within the cap.",
      +  "type": "number"
      +}
    • changedOutput schema / properties / nextCursor / description
      Previous value: -"Opaque token for the next, older page — pass it back as cursor. Present only when this page filled the limit; omitted on the last page."New value: +"Opaque token for the next, older page — pass it back as cursor. Present only when older observations remain in the window; omitted on the last page."
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance when the window held no observations (NWS keeps about the last 7 days), or when this page filled the limit and older observations may remain."New value: +"Guidance when the requested limit exceeded the page cap, when the window held no observations (NWS keeps about the last 7 days), or when older observations remain beyond this page."
    • addedOutput schema / properties / requestedLimit
      Added value: +{
      +  "description": "The limit asked for, when it exceeded the 100-observation page cap; absent otherwise.",
      +  "type": "number"
      +}
    • changedOutput schema / properties / truncated / description
      Previous value: -"True when this page filled the limit and older observations in the window may remain; continue with nextCursor."New value: +"True when older observations remain in the window past this page; continue with nextCursor."
  4. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond readOnlyHint the description discloses retention (~7 days per station), reporting cadence (as often as every 5 minutes), realistic volume (over 100 observations a day), ordering (newest first), and the page-size cap with requestedLimit/effectiveLimit reporting. Those operational facts are exactly what an agent needs to avoid mis-sizing a query.

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

Conciseness4/5

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

The scope and sibling differentiation are front-loaded in the first sentence, and every clause carries information. The second sentence is long and chains retention, cadence, volume, narrowing, and paging into one run, which slightly taxes scanning.

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?

With an output schema present, the description need not explain return values, and readOnlyHint covers the safety profile. For a five-parameter, cursor-paginated read tool, the description supplies the retention window, volume expectations, and paging model that the schema alone does not convey.

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

Parameters4/5

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

Schema coverage is already 100%, so the 3 baseline applies, but the description still adds meaning: start is inclusive, end is exclusive, cursor carries the prior query's start/end/limit so those inputs apply to the first page only, and pages neither repeat nor skip observations. The one gap is that it does not restate the limit default or maximum in prose.

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 states a specific verb and resource ("Get a station's recent observation history, newest first") and explicitly contrasts it with the sibling nws_get_observations ("the trend behind the single latest reading"), so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

It names the alternative and the condition that selects it, tells the agent to narrow with start (inclusive) and end (exclusive), explains how to page back with nextCursor, and points to nws_find_stations for station discovery. It also states the practical trigger — checking whether pressure is falling or wind is picking up.

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.