Spiral gives your agent every tool with one account. Browse the tools →

opencode · Public Records

How to Use FEMA National Risk Index hazard codes in opencode

Returns the hazard names represented by National Risk Index column prefixes. Use it to turn abbreviated wildfire, drought, heatwave, and coastal-flooding labels into readable report headings.

Prompts to try with FEMA National Risk Index hazard codes in opencode

Copy an example into opencode, or ask in your own words.

Use FEMA National Risk Index hazard codes to look this up and give me the result as a table. Save the result in ./assets.

FEMA National Risk Index hazard codesopencode
Try asking
  • Pull the latest numbers from FEMA National Risk Index hazard codes and tell me what changed since last week.

  • Check FEMA National Risk Index hazard codes and summarize what you find in three bullet points.

  • Pull the newest data from FEMA National Risk Index hazard codes and give me the result as a table.

  • Check FEMA National Risk Index hazard codes every morning and tell me only when something changed.

How to set up FEMA National Risk Index hazard codes in opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run FEMA National Risk Index hazard codes

    One request; the result comes back by polling or a webhook.

    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": "fema-gov/us-disaster-assistance/nri_hazards",
        "input": {
          "release": "v120"
        }
      }'

Then paste one of the prompts above: opencode finds FEMA National Risk Index hazard codes on Spiral, shows the price and runs it.

FEMA National Risk Index hazard codes providers and prices

Spiral runs FEMA National Risk Index hazard codes through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
FEMA · Nri hazards
fema-gov/us-disaster-assistance/nri_hazards

What can you do with FEMA National Risk Index hazard codes in opencode?

Build a county briefing in your project using FEMA disaster details, recovery resources, and community risk records. A coding agent can check dataset definitions and turn abbreviated measures into readable report labels.

County mitigation plan evidence

Prepare a Harris County, Texas, planning appendix with a disaster briefing and comparisons of community risk measures. Use the dataset catalog and field definitions to document the evidence, then translate NRI columns and hazard codes into readable labels.

Regional preparedness exercise

Build a Texas exercise packet around a historical disaster, county risk comparisons, and recovery organizations participants could consult. Discover the relevant datasets and directories, check measure definitions, and include both local and national referral resources.

Public recovery information portal

Create a community portal with declaration details, assistance summaries, regional service contacts, and national recovery resources. Add county risk context and comparison tables, with labels checked against FEMA's field definitions, NRI dictionary, and hazard codes.

Newsroom disaster recovery explainer

Prepare a reported explainer combining one disaster's assistance totals, affected-community risk comparisons, and organizations offering recovery services. Use catalog metadata and dictionaries to check data selection and chart labels, and directory discovery to assemble regional and national resource sidebars.

County risk comparison tables

Compare California counties using selected NRI measures, then retrieve a detailed record for a county needing closer review. Explain each measure and expand hazard abbreviations using the dictionary and hazard code lookup.

Questions about FEMA National Risk Index hazard codes in opencode

Can opencode use FEMA National Risk Index hazard codes?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run FEMA National Risk Index hazard codes like any built-in tool.

How much does FEMA National Risk Index hazard codes cost in opencode?

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

Do I need an Alexandria account to use FEMA National Risk Index hazard codes in opencode?

No. Spiral runs FEMA National Risk Index hazard codes on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up FEMA National Risk Index hazard codes in opencode?

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

Does opencode wait while FEMA National Risk Index hazard codes runs?

FEMA National Risk Index hazard codes runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

How far back does FEMA's disaster declaration history go?

FEMA's declaration history starts in 1953. County information is unavailable before 1964, and historical fire management records are partial.

How can I tell how often a FEMA dataset changes?

The OpenFEMA catalog publishes update frequency and deprecation status for individual datasets. Check the catalog entry for the dataset you plan to use.

What information describes the columns in FEMA datasets?

OpenFEMA publishes field metadata containing descriptions, data types, and other attributes for each field. This helps distinguish similarly named measures before combining records.

Are all organizations in FEMA's national referral list government agencies?

No. FEMA's national referral list includes both government and nongovernment disaster recovery services.

What does a state recovery resource listing contain?

FEMA organizes referral information by state and resource category. The Texas directory illustrates the listing format: web links, assistance descriptions, and telephone contacts.

Get started

Start using FEMA National Risk Index hazard codes in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options