[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [NWS active weather alerts](https://spiral.ai/integrations/gemini-cli/nws-active-weather-alerts)

# How to Use NWS active weather alerts in Gemini CLI

Returns NWS watches, warnings, and advisories currently in effect for a location. Use it to check current hazards before planning outdoor work or opening a venue.

|  |  |
| --- | --- |
| Model | NWS active weather alerts |
| Available through | Alexandria |
| Category | Listings |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with NWS active weather alerts in Gemini CLI

- Use NWS active weather alerts to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from NWS active weather alerts and tell me what changed since last week.
- Check NWS active weather alerts and summarize what you find in three bullet points.
- Pull the newest data from NWS active weather alerts and give me the result as a table.
- Check NWS active weather alerts every morning and tell me only when something changed.

## How to set up NWS active weather alerts in Gemini CLI

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run NWS active weather alerts**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "api-weather-gov/weather/alerts_active",
    "input": {
      "geometry": {}
    }
  }'
```

Then paste one of the prompts above: Gemini CLI finds NWS active weather alerts on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## NWS active weather alerts tools and prices

- [National Weather Service API (api.weather.gov) · Alerts active](https://spiral.ai/tools/alexandria/api-weather-gov/weather/alerts_active) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| events |  | — | Keep only these event names (case-insensitive substring match on the NWS event name, e.g. "Red Flag", "Flood", "Heat"). |
| severity |  | — | Keep only alerts with one of these CAP severities. |
| buffer_km | 0 to 5 | 0 | Also keep storm-based alerts whose polygon lies within this many kilometres of the geometry, and resolve zones for points this far outside its bounding box. |

## What can you do with NWS active weather alerts in Gemini CLI?

Build a facility weather view that puts NWS forecasts, station reports, and official alerts beside operational decisions. A coding agent can add the returned data to your project while keeping forecast grid cells, reporting stations, and alert areas distinct.

### Stadium operations briefing

Build a weather briefing for Nissan Stadium in Nashville: identify reporting stations, compare recent and latest readings, review daily and hourly forecasts, and summarize current and recent alerts with their full official messages.

### Construction shift planning

Prepare a site briefing that pairs the coming days and working hours with current station conditions. Identify the reporting station, review the past week's readings and alerts, and include official alert text when explaining possible work interruptions.

### Public park maintenance schedule

Help a park supervisor compare maintenance days and hourly work windows. Include nearby station information, recent and latest observations, and current and recent hazard messages so the schedule has both an outlook and recent weather context.

### Commercial nursery weather board

Create a nursery's daily weather board with a station directory, recent and latest readings, daily outlooks, and hourly conditions. Add current alerts and the past week's alert timeline, opening the official message for hazards relevant to outdoor operations.

### Restaurant patio staffing

Compare upcoming days and individual service hours before assigning patio staff. Add the latest observed conditions and active alerts to a manager's opening brief.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## NWS active weather alerts in other agents

- [Amp](https://spiral.ai/integrations/amp/nws-active-weather-alerts)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/nws-active-weather-alerts)
- [Claude](https://spiral.ai/integrations/claude-desktop/nws-active-weather-alerts)
- [Claude Code](https://spiral.ai/integrations/claude-code/nws-active-weather-alerts)
- [Cline](https://spiral.ai/integrations/cline/nws-active-weather-alerts)
- [Codex](https://spiral.ai/integrations/codex/nws-active-weather-alerts)
- [Cursor](https://spiral.ai/integrations/cursor/nws-active-weather-alerts)
- [Devin](https://spiral.ai/integrations/devin/nws-active-weather-alerts)
- [dots](https://spiral.ai/integrations/dots/nws-active-weather-alerts)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/nws-active-weather-alerts)
- [Gemini](https://spiral.ai/integrations/gemini/nws-active-weather-alerts)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/nws-active-weather-alerts)
- [goose](https://spiral.ai/integrations/goose/nws-active-weather-alerts)
- [Grok](https://spiral.ai/integrations/grok/nws-active-weather-alerts)
- [Grok Build](https://spiral.ai/integrations/grok-build/nws-active-weather-alerts)
- [Hermes](https://spiral.ai/integrations/hermes/nws-active-weather-alerts)
- [Instinct](https://spiral.ai/integrations/instinct/nws-active-weather-alerts)
- [Manus](https://spiral.ai/integrations/manus/nws-active-weather-alerts)
- [Muse](https://spiral.ai/integrations/muse/nws-active-weather-alerts)
- [Muse Code](https://spiral.ai/integrations/muse-code/nws-active-weather-alerts)
- [n8n](https://spiral.ai/integrations/n8n/nws-active-weather-alerts)
- [Notion](https://spiral.ai/integrations/notion/nws-active-weather-alerts)
- [OpenClaw](https://spiral.ai/integrations/openclaw/nws-active-weather-alerts)
- [opencode](https://spiral.ai/integrations/opencode/nws-active-weather-alerts)
- [Perplexity](https://spiral.ai/integrations/perplexity/nws-active-weather-alerts)
- [Raycast](https://spiral.ai/integrations/raycast/nws-active-weather-alerts)
- [VS Code](https://spiral.ai/integrations/vscode/nws-active-weather-alerts)
- [Windsurf](https://spiral.ai/integrations/windsurf/nws-active-weather-alerts)
- [Zapier](https://spiral.ai/integrations/zapier/nws-active-weather-alerts)

## More Gemini CLI guides

- [NIFC wildfire incident details](https://spiral.ai/integrations/gemini-cli/nifc-wildfire-incident-details)
- [NWS daily weather forecast](https://spiral.ai/integrations/gemini-cli/nws-daily-weather-forecast)
- [NIFC newly discovered fires](https://spiral.ai/integrations/gemini-cli/nifc-newly-discovered-fires)
- [NWS hourly weather forecast](https://spiral.ai/integrations/gemini-cli/nws-hourly-weather-forecast)
- [NIFC fire perimeter history](https://spiral.ai/integrations/gemini-cli/nifc-fire-perimeter-history)
- [NWS latest weather observation](https://spiral.ai/integrations/gemini-cli/nws-latest-weather-observation)

## Questions about NWS active weather alerts in Gemini CLI

**Can Gemini CLI use NWS active weather alerts?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run NWS active weather alerts like any built-in tool.

**How much does NWS active weather alerts cost in Gemini CLI?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.

**Do I need an Alexandria account to use NWS active weather alerts in Gemini CLI?**

No. Spiral runs NWS active weather alerts on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up NWS active weather alerts in Gemini CLI?**

About two minutes: add the server, then sign in, then check it.

**Does Gemini CLI wait while NWS active weather alerts runs?**

NWS active weather alerts runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.

**How far ahead and back does NWS weather data go?**

NWS forecast products cover the next seven days. Its API retains seven days of station observations and seven days of recent alerts, so it is intended for current operations and recent-event reviews.

**Does the latest observation mean conditions this minute?**

NWS says observations may arrive up to 20 minutes late because its upstream MADIS source performs quality checks. The latest available station report can therefore describe earlier conditions.

**How local is NWS weather data?**

Forecasts use grid squares about 2.5 kilometers across, while observations describe individual reporting stations. Alerts can cover warning polygons, counties, or forecast zones, so these products have different geographic footprints.

**Does NWS include every emergency alert?**

NWS CAP does not include all non-weather emergency alerts. NWS directs users seeking comprehensive weather and non-weather emergency messages to FEMA IPAWS.

**Can NWS information be copied into a report or application?**

NWS describes its published information as public information that may be distributed or copied, and requests appropriate credits. Its CAP messages have a specific restriction: they must not be used to activate Emergency Alert System equipment.

