Skip to main content
Glama
lzinga

US Government Open Data MCP

by lzinga

eia_state_energy

Read-onlyIdempotent

Get state-level energy data for all 50 states, including production, consumption, expenditures, and prices by source.

Instructions

Get state-level energy data from the State Energy Data System (SEDS). Covers production, consumption, expenditures, and prices by energy source for all 50 states.

MSN codes (energy data codes):

  • TETCB: Total energy consumption (trillion BTU)

  • TETCD: Total energy consumption per capita

  • TEPRB: Total energy production (trillion BTU)

  • ESTCB: Electricity total consumption

  • CLTCB: Coal consumption

  • NNTCB: Natural gas consumption

  • PATCB: Petroleum consumption

  • RETCB: Renewable energy consumption

  • NUETB: Nuclear energy consumption

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNoEnd year (YYYY). Default: latest available
msnNoMSN energy data code. 'TETCB' (total consumption, default), 'TETCD' (per capita), 'TEPRB' (production), 'RETCB' (renewables), 'PATCB' (petroleum)
startNoStart year (YYYY). Default: 5 years ago
stateNoTwo-letter state code (e.g., 'CA'). Omit for all states.
lengthNoMax rows (API max: 5000). Omit to let date range control volume.
offsetNoRow offset for pagination

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2026.4.11
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv2026.3.9

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the description does not need to repeat safety characteristics. It adds meaningful behavioral context beyond annotations by defining the dataset scope (SEDS, all 50 states, energy categories) and listing MSN codes. It does not disclose response shape or pagination behavior, but the provided context is still useful.

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

Conciseness5/5

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

The definition is front-loaded with the core purpose, followed by a compact, high-value MSN code list that directly informs parameter selection. There is no filler or redundant repetition of schema details; every sentence and bullet contributes to correct tool use.

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?

For a read-only, all-optional-parameter tool with rich schema descriptions and safety annotations, the description is largely complete: it names the dataset, scope, covered metrics, and key codes. The main gaps are the absence of explicit sibling routing and no hint about the output row structure, but these are not critical for basic invocation.

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%, but the description adds substantial value by explaining MSN codes with units and definitions, including codes absent from the schema's msn description (e.g., ESTCB, CLTCB, NNTCB, NUETB). This helps an agent pick the correct msn value. Other parameters are already well described in the schema, so the description appropriately supplements rather than repeats.

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?

The description uses a specific verb ('Get') and a concrete resource ('State Energy Data System (SEDS)'), and clearly scopes the data to state-level energy information for all 50 states. It also enumerates covered categories (production, consumption, expenditures, prices), which helps an agent understand exactly what this tool provides and distinguishes it from fuel-specific EIA siblings.

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 description gives clear context: this is for state-level SEDS data across all 50 states, which strongly implies when it should be selected. However, it does not explicitly name sibling alternatives like eia_total_energy or eia_petroleum, nor does it state when to prefer those tools, so it falls short of explicit routing/exclusion guidance.

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

Deploy Server

Other Tools