Skip to main content
Glama

Official EIA monthly electricity prices by state and sector ($0.02)

electricity_state
Read-only

PAID $0.02 USDC. Official EIA API v2 / Electric Power Monthly average retail electricity price by state and sector. Each row has sector, period, method official or estimated, source_url and utilities[]. Texas also includes an estimated annual retail provider avg (competitive areas) from EIA-861, labeled separately. Free residential-only preview: free_electricity_state. attribution_official: Source: U.S. Energy Information Administration, Electric Power Monthly / API v2 (Nov 2026). Official monthly data. attribution_861: Source: U.S. Energy Information Administration, Form EIA-861 2025 final (Oct 2026). Annual estimates.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "state": "<state>"
    },
    "name": "electricity_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYesTwo-letter state code
periodNoYYYY-MM or latest
sectorNoresidential|commercial|industrial
api_keyNoOptional payment credential. Format: a prepaid key sk_scrapling_... or a catalog pass token sdp_... from pass_day or pass_month. Example: sdp_... . When omitted on a paid tool, the call is unpaid and the server answers with x402 PaymentRequired; retry the same call with the signed payment in params._meta['x402/payment'].

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnlyHint/openWorldHint annotations, the description adds real context: the $0.02 charge, the row shape, the official-vs-estimated method flag, the EIA-861 annual estimate overlay for Texas, and data vintages (Nov 2026 / Oct 2026). It does not itself explain the unpaid-call/402 retry flow — that lives in the api_key schema — nor any rate limits or failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The cost and resource are front-loaded, which is good, but the two trailing attribution strings read like output boilerplate rather than decision-relevant guidance and inflate the text. The Texas exception is buried mid-paragraph where an agent skimming may miss it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of describing returns and does so: sector, period, method, source_url, utilities[], plus the Texas special case. Combined with the api_key schema covering payment, an agent has nearly everything needed to call it correctly; only the exact shape of utilities[] is unscoped.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds value by tying the sector parameter to real EIA series and clarifying that 'latest'/period maps to monthly Electric Power Monthly data, and by noting the Texas-only supplementary provider average. It still leaves the interaction between sector and the Texas estimate implicit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: average retail electricity price by state and sector from EIA API v2 / Electric Power Monthly, plus the exact cost ($0.02 USDC). It also explicitly distinguishes itself from the sibling free_electricity_state, which it labels a residential-only free preview.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The contrast with free_electricity_state ('Free residential-only preview') gives clear routing context: pay here for full sectors/official data, use the sibling for a free residential sample. It stops short of an explicit 'use this when / do not use when' statement covering the paid alternatives like prices or electricity_county.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.