How to Use FEMA dataset field definitions in opencode
Returns field descriptions, data types, and other metadata for OpenFEMA datasets. Use it to interpret a dataset's columns before building a report or combining records.
Prompts to try with FEMA dataset field definitions in opencode
Copy an example into opencode, or ask in your own words.
Use FEMA dataset field definitions to inspect Disaster Declarations Summaries, then update this project's data mapping with the documented column meanings and types.
Use FEMA dataset field definitions to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from FEMA dataset field definitions and tell me what changed since last week.
Check FEMA dataset field definitions and summarize what you find in three bullet points.
Pull the newest data from FEMA dataset field definitions and give me the result as a table.
How to set up FEMA dataset field definitions in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run FEMA dataset field definitions
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/get_dataset_fields", "input": { "entity": "<entity>", "version": 1 } }'
Then paste one of the prompts above: opencode finds FEMA dataset field definitions on Spiral, shows the price and runs it.
FEMA dataset field definitions providers and prices
Spiral runs FEMA dataset field definitions through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Version | 1 to 20 | Dataset version from |
Every API field of FEMA · Get dataset fields is on its tool page: open its card above.
What can you do with FEMA dataset field definitions 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.
Research dataset maintenance
Review the OpenFEMA catalog for dataset versions and deprecation status. Compare field definitions before updating an existing report's data mapping.
More on FEMA dataset field definitions and opencode
Overview
FEMA dataset field definitions in other agents
Questions about FEMA dataset field definitions in opencode
Can opencode use FEMA dataset field definitions?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run FEMA dataset field definitions like any built-in tool.
How much does FEMA dataset field definitions 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 dataset field definitions in opencode?
No. Spiral runs FEMA dataset field definitions 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 dataset field definitions in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while FEMA dataset field definitions runs?
FEMA dataset field definitions 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.
Start using FEMA dataset field definitions in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


