Skip to main content
Glama

PriceOfElectricity.com: U.S. electricity prices

Cheapest or most expensive states

rank_states
Read-onlyIdempotent

Lists U.S. states (50 + DC) ranked by average residential electricity rate, cheapest or most expensive first, from the latest EIA data, with links.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "rank_states"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many states to return (1–51); default 10.
orderNo'cheapest' (default) or 'most_expensive'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and closed-world traits, so the bar is lower. The description still adds real value: coverage of 50 states plus DC, sorted ordering, source currency ('latest EIA data'), and that results carry links. It does not say whether missing data states are dropped or how ranks are recomputed, but that is a minor gap.

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?

One sentence, front-loaded with the resource and scope, followed by the ordering axis and data source. No filler and nothing redundant with the schema or annotations.

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

Completeness5/5

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

For a simple two-optional-parameter read tool with full schema coverage and complete annotations, plus no output schema that would need describing, the description supplies everything an agent needs. Source, scope, and ordering are all stated.

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%, with both limit and order enum fully documented in the schema, so the baseline applies. The description echoes the order choice ('cheapest or most expensive first') but adds nothing on limit behavior, such as default or max, beyond what the schema states.

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?

Specific verb plus resource plus ranking semantic: 'Lists U.S. states (50 + DC) ranked by average residential electricity rate, cheapest or most expensive first.' An agent can tell this is a ranked list of states by rate, distinct from cost calculators or single-rate lookups among the siblings.

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 implied by the ranking framing (top-N cheapest/most expensive states), but there is no explicit when-to-use or when-not guidance and no named alternative such as compare_state_costs or get_electricity_rate. An agent must infer the boundary from the description alone.

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