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

OpenClaw · Finance

How to Use EIA energy observations in OpenClaw

Fetch dated EIA measurements, such as electricity sales, generation, demand, or natural gas storage. Use it for comparisons and calculations once you have identified the dataset and filter codes.

Prompts to try with EIA energy observations in OpenClaw

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

Every Monday, use EIA energy observations to check U.S. weekly working natural gas in underground storage. Report any newly available week and compare it with the corresponding week a year earlier.

EIA energy observationsOpenClaw
Try asking
  • Each month, use EIA energy observations to check California residential electricity sales. When a new month appears, compare it with the same month a year earlier.

  • Each morning, use EIA energy observations to compare PJM's reported demand and demand forecasts for the latest complete day available. Report the three largest absolute hourly differences.

  • Every Monday at 9am: use EIA energy observations to look this up and give me the result as a table.

  • Pull the latest numbers from EIA energy observations and tell me what changed since last week.

How to set up EIA energy observations in OpenClaw

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

Use the Spiral skill

  1. Send OpenClaw 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 Spiral's MCP server

  1. Add the server

    On the machine that runs OpenClaw's Gateway:

    openclaw mcp add spiral \
      --url https://api.spiral.ai/mcp \
      --transport streamable-http \
      --auth oauth
  2. Sign in

    In Settings › MCP, select Sign in on the Spiral server, sign in to Spiral and click Authorize. No API key.

    openclaw mcp login spiral
  3. Reload and check

    A running Gateway may keep its old tool list: restart it, or Save & Publish in the Control UI.

    openclaw mcp reload
    openclaw mcp doctor spiral --probe

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 EIA energy observations

    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": "eia-gov/energy-data/data",
        "input": {
          "route": "<route>",
          "frequency": "<frequency>"
        }
      }'

Then paste one of the prompts above: OpenClaw finds EIA energy observations on Spiral, shows the price and runs it.

EIA energy observations providers and prices

Spiral runs EIA energy observations through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance

Settings you can ask for

Ask OpenClaw for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page size1 to 500020

Rows per page; the API caps a page at 5000 rows.

Every API field of US Energy Information Administration · Data is on its tool page: open its card above.

What can you do with EIA energy observations in OpenClaw?

Maintain a recurring briefing on electricity use or natural gas storage with EIA data. The agent can check dataset coverage and category labels, then compare newly available observations with earlier periods.

Compare state electricity consumption

Find the retail sales dataset, resolve state and customer-sector codes, and compare monthly residential electricity sales in California, Texas, and Florida over the same period.

Compare commercial and industrial demand for electricity

Identify the retail sales measurements and sector labels, then compare commercial and industrial electricity sales in Ohio. Calculate each sector's year-over-year change.

Measure changes in a state's generation mix

Locate monthly generation by state and fuel, resolve the fuel categories, and calculate how Texas generation shares changed between 2023 and 2024.

Review power plant operating history

Find the plant generation dataset and the code for Palo Verde, then compare monthly generation across 2023 and 2024 to identify seasonal changes.

Check grid demand forecasts against reported demand

Locate hourly balancing-authority measurements and resolve PJM's reporting code. Compare reported demand with demand forecasts for a completed week and calculate the largest hourly differences.

Compare seasonal natural gas storage

Find weekly underground storage data and its regional categories, then compare working gas levels for the same weeks in successive years.

Questions about EIA energy observations in OpenClaw

Can OpenClaw use EIA energy observations?

Yes. Add Spiral to OpenClaw as an MCP server, and OpenClaw can find and run EIA energy observations like any built-in tool.

How much does EIA energy observations cost in OpenClaw?

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

Do I need an Alexandria account to use EIA energy observations in OpenClaw?

No. Spiral runs EIA energy observations on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up EIA energy observations in OpenClaw?

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

Does OpenClaw wait while EIA energy observations runs?

EIA energy observations runs in the background. OpenClaw starts the run, checks on it and gives you the json when it's ready.

What detail does EIA provide for electricity customers?

EIA's retail sales dataset includes monthly customer counts, electricity sales, revenue, and average prices by state and customer sector.

Does EIA update every dataset on the same schedule?

No. EIA says its API accesses public-facing databases directly and updates constantly rather than at regular intervals.

Can one response contain every matching observation?

EIA caps observation responses at 5,000 rows. The total count can exceed the returned count, so larger requests need pagination or narrower filters.

How far back does the hourly grid API go?

EIA says historical EIA-930 submissions through the API begin January 1, 2019. This collection covers grid operations reported by balancing authorities in the Lower 48 states.

Does hourly generation include rooftop solar?

Hourly generation captures generators managed by, or visible to, balancing authorities. Those authorities typically do not meter distribution-system generators, so rooftop solar is often excluded.

Get started

Start using EIA energy observations in OpenClaw

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

Paste this into OpenClaw:

Set up OpenClaw

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