Skip to main content
Glama

PriceOfElectricity.com: U.S. electricity prices

Electricity rate for a state

get_electricity_rate
Read-onlyIdempotent

Gets the current average residential electricity rate (¢/kWh) for a U.S. state or the U.S. average from EIA data, with the data month, how it compares with the national average, its rank among 51 jurisdictions, the 1-year change, and a link to the source page.

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": "get_electricity_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYesU.S. state name, two-letter postal code, or slug (e.g. 'Ohio', 'OH', 'new-york'), or 'us-average'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, closed-world, non-destructive behavior, so the bar is lower. The description still adds value by disclosing what comes back (data month, national comparison, rank among 51, 1-year change, source link) and where the data originates, though it says nothing about freshness lag beyond "current" or rate limits.

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

Conciseness4/5

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

A single front-loaded sentence that leads with the verb and resource, then enumerates return fields. It is dense but every clause carries information; a light bulleted or split structure would read better without losing content.

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 usefully enumerates the returned fields, which is exactly the burden it must carry. Coverage is strong for a one-parameter lookup; the only real gap is the absence of any guidance tying it to sibling tools.

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

Parameters3/5

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

Schema coverage is 100% and the state parameter already documents accepted formats (name, postal code, slug, 'us-average'). The description confirms the unit (¢/kWh) and US-average option but adds no new input semantics beyond the schema, so baseline 3 applies.

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

Purpose4/5

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

Names a specific verb and resource ("Gets the current average residential electricity rate") with units, geography, and source (EIA). The "residential average" framing implicitly separates it from get_utility_rates and get_price_history, but the description never names those siblings or states the contrast explicitly.

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

Usage Guidelines3/5

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

Scope is implied by the state/us-average parameter and "residential," so an agent can infer rough fit, but there is no explicit statement of when to prefer this over get_utility_rates, get_price_history, or compare_state_costs, and no prerequisites or exclusions are given.

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.

Resources