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

opencode · Public Records

How to Use NASA FIRMS local fire detections in opencode

Returns satellite fire and hotspot detections for a selected area and time range. Use it to examine recent activity around a park, city, or public facility without collecting a whole regional file.

Prompts to try with NASA FIRMS local fire detections in opencode

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

Use NASA FIRMS local fire detections to retrieve recent observations around Yosemite National Park and add a point layer to this project's map, with acquisition time and confidence in each popup.

NASA FIRMS local fire detectionsopencode
Try asking
  • Use NASA FIRMS local fire detections to retrieve recent observations around Yellowstone National Park and add a table sorted by acquisition time, retaining satellite and confidence.

  • Use NASA FIRMS local fire detections to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from NASA FIRMS local fire detections and tell me what changed since last week.

  • Check NASA FIRMS local fire detections and summarize what you find in three bullet points.

How to set up NASA FIRMS local fire detections 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 NASA FIRMS local fire detections

    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": "firms-modaps-eosdis-nasa-gov/wildfire-detections/fires_area",
        "input": {
          "area": "<area>",
          "source": "VIIRS_SNPP_NRT"
        }
      }'

Then paste one of the prompts above: opencode finds NASA FIRMS local fire detections on Spiral, shows the price and runs it.

NASA FIRMS local fire detections providers and prices

Spiral runs NASA FIRMS local fire detections through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
NASA FIRMS active fire detections · Fires area
firms-modaps-eosdis-nasa-gov/wildfire-detections/fires_area

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
SourceVIIRS_SNPP_NRT, VIIRS_SNPP_SP, VIIRS_NOAA20_NRT, VIIRS_NOAA20_SP, VIIRS_NOAA21_NRT, MODIS_NRT, MODIS_SP, or LANDSAT_NRT

FIRMS source product name as used by /api/area. Keyless mode maps the NRT products to the file families; the _SP archives need map_key.

Limit1 to 500005000

Maximum records returned; truncated says when more matched.

Day range1 to 51

Days of data ending at date (or now). Each day counts as one transaction against the key's 5000 per 10 minutes.

Every API field of NASA FIRMS active fire detections · Fires area is on its tool page: open its card above.

What can you do with NASA FIRMS local fire detections in opencode?

Build a map of recent satellite hotspots with acquisition times, sensor labels, and confidence. A coding agent can connect FIRMS observations and file checks to the project's map and data-refresh code.

Prepare a park activity brief

Check whether the regional file changed, collect recent detections around Yosemite National Park, and summarize observation times and confidence for an analyst.

Refresh a regional hotspot map

Check Canada's fire files for changes, download regional detections, and inspect selected areas around Jasper. Show satellite observations as points rather than drawing inferred fire boundaries.

Build a newsroom research brief

Check for revised source files, collect regional observations, and examine the reported location of a public fire event. Separate satellite detection times from claims about when the incident began.

Compare sensor observations

Check the available MODIS and VIIRS files, compare regional detections, and inspect a shared area around Yellowstone. Keep each sensor's pixel size and observation time visible.

Maintain a recent observation dataset

Check regional file changes before refreshing a stored dataset. Collect all regional pages and use local queries to examine selected public parks or research areas.

Teach satellite sampling limits

Use recent detections near Jasper and the wider Canadian region to demonstrate observation gaps and different pixel sizes. Include a file-status check to distinguish source revisions from changes in the observations being compared.

Questions about NASA FIRMS local fire detections in opencode

Can opencode use NASA FIRMS local fire detections?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run NASA FIRMS local fire detections like any built-in tool.

How much does NASA FIRMS local fire detections 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 NASA FIRMS local fire detections in opencode?

No. Spiral runs NASA FIRMS local fire detections on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up NASA FIRMS local fire detections in opencode?

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

Does opencode wait while NASA FIRMS local fire detections runs?

NASA FIRMS local fire detections runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

How quickly does FIRMS publish satellite observations?

NASA says global near real-time active fire data are available within three hours of satellite observation. That interval starts at observation, so it does not describe the time since a fire began.

How precise are FIRMS detection locations?

MODIS detections represent approximately 1 km pixels, while VIIRS detections represent approximately 375 m pixels. A detection does not mean the entire pixel is burning.

Does an empty result mean there was no fire?

No. NASA documents missed detections when a fire starts and ends between satellite overpasses; heavy cloud or smoke can also hide activity.

Can FIRMS detections be counted as separate wildfires?

No. FIRMS reports thermal anomalies at the pixel level, and NASA identifies hot smoke, agriculture, and other sources among their possible causes. These records do not provide a count of confirmed wildfire incidents.

Where does NASA provide older fire data?

NASA directs requests for detections older than seven days to its separate archive download. That archive is distinct from the recent regional files.

Get started

Start using NASA FIRMS local fire detections 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