# `nws__nws_get_observations`

**Nws Get Observations**

Get current weather observations (actual measured conditions). Accepts coordinates (resolves nearest station automatically) or a station ID directly (e.g., "KSEA").

- Server: [US National Weather Service](https://gateway.mcpharbor.dev/docs/servers/nws) (`dev.mcpharbor.gateway/nws`)
- Price per call: $0.0001 (100 micro-USD); only tools/call is charged
- Endpoint: `https://gateway.mcpharbor.dev/mcp` or `https://gateway.mcpharbor.dev/mcp/nws`
- Upstream tool: exposed by the provider; called through this gateway as `nws__nws_get_observations`
- Provider terms: <https://www.weather.gov/disclaimer> (verified 2026-09-19)
- Upstream API documentation: <https://www.weather.gov/documentation/services-web-api>
- Rate limit: 300 requests per minute
- Attribution required: No attribution required. Must not claim the content as your own, imply NOAA/NWS endorsement, or modify content and present it as official government material. Third parties producing copyrighted works predominantly of NWS material must add a notice identifying the NWS material as not subject to copyright. A User-Agent identifying the app (ideally with contact info) is required on every request.

## Parameters

- `latitude` (number, optional): Latitude for automatic station resolution. Use with longitude. Ignored if station_id is provided.
- `longitude` (number, optional): Longitude for automatic station resolution. Use with latitude. Ignored if station_id is provided.
- `station_id` (string, optional): Station identifier directly (e.g., "KSEA", "KORD"). Use nws_find_stations to discover station IDs.

## Example call

Request headers and body:

```http
POST /mcp HTTP/1.1
Host: gateway.mcpharbor.dev
Authorization: Bearer <your gateway API key>
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/call
Mcp-Name: nws__nws_get_observations
```

```json
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "_meta": {
      "io.modelcontextprotocol/clientCapabilities": {},
      "io.modelcontextprotocol/clientInfo": {
        "name": "example-agent",
        "version": "1.0.0"
      },
      "io.modelcontextprotocol/protocolVersion": "2026-07-28"
    },
    "arguments": {
      "latitude": 1
    },
    "name": "nws__nws_get_observations"
  }
}
```

A successful response:

```json
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "_meta": {
      "dev.mcpharbor.gateway/call": {
        "chargedMicroUsd": 100,
        "id": "<the id of this charge>"
      }
    },
    "content": [
      {
        "text": "<whatever the upstream tool returned>",
        "type": "text"
      }
    ],
    "resultType": "complete"
  }
}
```

This call costs $0.0001 (100 micro-USD). Reading this page and listing the tool cost nothing.
The `dev.mcpharbor.gateway/call` record in the result is the receipt for that charge. Each
POST is metered separately, so sending the same call again buys another one: see
[agent.txt](https://gateway.mcpharbor.dev/agent.txt), section 7, before retrying.

## Attribution

This provider requires the attribution below wherever you use results from its tools.
Reproduce it verbatim:

> No attribution required. Must not claim the content as your own, imply NOAA/NWS endorsement, or modify content and present it as official government material. Third parties producing copyrighted wo...

## Tool definition

Exactly as `tools/list` returns it (free):

```json
{
  "_meta": {
    "dev.mcpharbor.gateway/pricing": {
      "currency": "USD",
      "pricePerCallMicroUsd": 100
    }
  },
  "annotations": {
    "readOnlyHint": true
  },
  "description": "Get current weather observations (actual measured conditions). Accepts coordinates (resolves nearest station automatically) or a station ID directly (e.g., \"KSEA\").",
  "inputSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "additionalProperties": false,
    "properties": {
      "latitude": {
        "description": "Latitude for automatic station resolution. Use with longitude. Ignored if station_id is provided.",
        "maximum": 90,
        "minimum": -90,
        "type": "number"
      },
      "longitude": {
        "description": "Longitude for automatic station resolution. Use with latitude. Ignored if station_id is provided.",
        "maximum": 180,
        "minimum": -180,
        "type": "number"
      },
      "station_id": {
        "description": "Station identifier directly (e.g., \"KSEA\", \"KORD\"). Use nws_find_stations to discover station IDs.",
        "type": "string"
      }
    },
    "type": "object"
  },
  "name": "nws__nws_get_observations",
  "outputSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "additionalProperties": false,
    "anyOf": [
      {
        "not": {
          "required": [
            "error"
          ]
        },
        "required": [
          "stationId",
          "stationName",
          "timestamp",
          "timeZone",
          "textDescription",
          "temperatureC",
          "dewpointC",
          "windSpeedKmh",
          "windDirectionDeg",
          "windGustKmh",
          "barometricPressurePa",
          "visibilityM",
          "relativeHumidityPct",
          "heatIndexC",
          "windChillC",
          "cloudLayers",
          "station",
          "observedAt"
        ]
      },
      {
        "required": [
          "error"
        ]
      }
    ],
    "properties": {
      "barometricPressurePa": {
        "description": "Barometric pressure in Pascals",
        "type": [
          "number",
          "null"
        ]
      },
      "cloudLayers": {
        "description": "Cloud layer information",
        "items": {
          "additionalProperties": false,
          "description": "Single cloud layer with cover amount and base height",
          "properties": {
            "amount": {
              "description": "Cloud cover (e.g., \"FEW\", \"SCT\", \"BKN\", \"OVC\")",
              "type": "string"
            },
            "baseM": {
              "description": "Cloud base height in meters",
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "amount",
            "baseM"
          ],
          "type": "object"
        },
        "type": "array"
      },
      "dewpointC": {
        "description": "Dewpoint in Celsius",
        "type": [
          "number",
          "null"
        ]
      },
      "error": {
        "additionalProperties": {},
        "description": "Present when the call failed. Absent on success.",
        "properties": {
          "code": {
            "description": "JSON-RPC error code for this failure.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "data": {
            "additionalProperties": {},
            "properties": {
              "reason": {
                "description": "Machine-readable failure mode. Declared by this tool: `missing_input`: Neither station_id nor a (latitude, longitude) pair was provided. `blank_station_id`: station_id was provided with a blank value. `station_not_found`: Station ID does not exist in the NWS network. `no_observations`: Station has no recent observations available. `no_stations_nearby`: No observation stations exist near the requested coordinates. `out_of_scope`: Coordinates fall outside US National Weather Service coverage. Other values are possible when a failure originates below the handler.",
                "examples": [
                  "missing_input",
                  "blank_station_id",
                  "station_not_found",
                  "no_observations",
                  "no_stations_nearby",
                  "out_of_scope"
                ],
                "type": "string"
              },
              "recovery": {
                "additionalProperties": {},
                "description": "Actionable next step for the caller.",
                "properties": {
                  "hint": {
                    "type": "string"
                  }
                },
                "required": [
                  "hint"
                ],
                "type": "object"
              },
              "retryable": {
                "description": "Whether retrying may succeed.",
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "message": {
            "description": "Human-readable description of what went wrong.",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "type": "object"
      },
      "heatIndexC": {
        "description": "Heat index in Celsius",
        "type": [
          "number",
          "null"
        ]
      },
      "notice": {
        "description": "Guidance when the latest observation is more than 2 hours old — data may not reflect current conditions.",
        "type": "string"
      },
      "observedAt": {
        "description": "Observation timestamp (ISO 8601)",
        "type": "string"
      },
      "relativeHumidityPct": {
        "description": "Relative humidity in percent (0-100)",
        "type": [
          "number",
          "null"
        ]
      },
      "station": {
        "description": "Station ID that served the observation (e.g., \"KSEA\")",
        "type": "string"
      },
      "stationId": {
        "description": "Observation station ID",
        "type": "string"
      },
      "stationName": {
        "description": "Station name",
        "type": "string"
      },
      "temperatureC": {
        "description": "Temperature in Celsius",
        "type": [
          "number",
          "null"
        ]
      },
      "textDescription": {
        "description": "Conditions summary (e.g., \"Mostly Cloudy\")",
        "type": "string"
      },
      "timeZone": {
        "description": "Station time zone when known",
        "type": [
          "string",
          "null"
        ]
      },
      "timestamp": {
        "description": "Observation time (ISO 8601)",
        "type": "string"
      },
      "visibilityM": {
        "description": "Visibility in meters",
        "type": [
          "number",
          "null"
        ]
      },
      "windChillC": {
        "description": "Wind chill in Celsius",
        "type": [
          "number",
          "null"
        ]
      },
      "windDirectionDeg": {
        "description": "Wind direction in degrees (0-360)",
        "type": [
          "number",
          "null"
        ]
      },
      "windGustKmh": {
        "description": "Wind gust in km/h",
        "type": [
          "number",
          "null"
        ]
      },
      "windSpeedKmh": {
        "description": "Wind speed in km/h",
        "type": [
          "number",
          "null"
        ]
      }
    },
    "type": "object"
  },
  "title": "Nws Get Observations"
}
```
