# NWS seven-day outlook for a US grid square

National Weather Service forecast for a US forecast grid square (office and grid x, y from nws/point): twelve-hour periods for seven days with temperature. Needs office, x and y. Served by National Weather Service.

National Weather Service forecast for a US forecast grid square (office and grid x, y from nws/point): twelve-hour periods for seven days with temperature, wind, precipitation probability and a detailed text, or 156 hourly periods with period 'forecast/hourly' (long: the output keeps the first periods). Public domain data, United States only.

- Tool ID: `nws/forecast`
- Provider: [National Weather Service](/providers/nws.md)
- Capability: [Weather forecast & history](/tools/weather/forecast.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "office": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "Forecast office id (gridId from nws/point), e.g. 'LWX'"
    },
    "x": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000,
      "description": "Grid x (gridX from nws/point), e.g. 97"
    },
    "y": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000,
      "description": "Grid y (gridY from nws/point), e.g. 71"
    },
    "period": {
      "type": "string",
      "enum": [
        "forecast",
        "forecast/hourly"
      ],
      "default": "forecast",
      "description": "Twelve-hour periods or hourly periods, e.g. 'forecast/hourly'"
    },
    "units": {
      "type": "string",
      "enum": [
        "us",
        "si"
      ],
      "default": "us",
      "description": "Units, e.g. 'si'"
    }
  },
  "required": [
    "office",
    "x",
    "y"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "nws/forecast",
  "input": {
    "office": "LWX",
    "x": 97,
    "y": 71
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Licence: US Government public data (public domain).

Attribution: Data from the U.S. National Weather Service (weather.gov).

[Provider documentation](https://www.weather.gov/documentation/services-web-api)

[REST inspection](https://api.agentik.cc/v1/tools/nws/forecast) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/nws/forecast) · [Agent index](/llms.txt)
