Skip to main content
Glama

PriceOfElectricity.com: U.S. electricity prices

Electricity price history for a state

get_price_history
Read-onlyIdempotent

Gets a state's monthly average residential electricity price history (EIA, back to 2001) with its 1-year and 5-year change, and a link to the chart 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_price_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYesU.S. state name, two-letter postal code, or slug (e.g. 'Ohio', 'OH', 'new-york').
monthsNoHow many recent months to return (1–120); default 24.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world behavior, so the description is free to add provenance and coverage: EIA as the source, data starting in 2001, and inclusion of 1-year and 5-year changes plus a chart link. That is meaningful behavioral context beyond the structured fields, though units and response shape are left unstated.

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?

A single front-loaded sentence that packs the resource, granularity, source, time span, and return contents with no filler. Nothing is repeated from the schema or annotations.

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?

There is no output schema, and the description does partially compensate by naming the returned series, the change metrics, and the chart link. It stops short of stating units (e.g., cents per kWh) or the response container, which is a notable gap for a data-retrieval tool.

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 description coverage is 100% and both parameters are fully documented in the schema, including the 1–120 range, the default of 24, and accepted state formats ('Ohio', 'OH', 'new-york'). The description adds no parameter-level meaning beyond that, so the baseline of 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?

The description gives a specific verb and resource: monthly average residential electricity price history for a state, with data source (EIA), temporal scope (back to 2001), and derived fields. It implicitly separates itself from siblings like get_electricity_rate by being a historical series rather than a point-in-time rate, though no sibling is named 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?

Usage is only implied by the word 'history' and the 2001-onward scope; there is no explicit when-to-use or when-not-to-use guidance and no pointer to alternatives such as get_electricity_rate for current prices. An agent must infer the routing from the tool name and scope.

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