Skip to main content
Glama

PriceOfElectricity.com: U.S. electricity prices

Compare state electricity costs

compare_state_costs
Read-onlyIdempotent

Compares the estimated monthly electricity cost of the same kWh usage across 2–5 U.S. states (or the U.S. average), using each state's EIA all-in average residential rate. Sorted cheapest first; defaults to the site's 900 kWh benchmark.

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": {
      "states": "<states>"
    },
    "name": "compare_state_costs"
  }
}

Input Schema

NameRequiredDescriptionDefault
statesYes2–5 states as names, postal codes, or slugs.
monthly_kwhNoMonthly usage in kWh applied to every state (default 900; 1–100,000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, so the description's job is to add context beyond safety. It does — disclosing the result ordering (cheapest first), the default benchmark usage (900 kWh), and the underlying rate source (EIA all-in average residential rate), which materially affects interpretation of results. It stops short of explaining rounding, rate vintage, or edge cases when a state's rate is unavailable.

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 with the verb, scope, method, ordering, and default all compressed into it; every clause carries distinct information and nothing is redundant padding.

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 simple two-parameter read-only tool with no output schema, the description covers scope, data source, ordering, and default usage — enough to call it correctly. The only gap is the return shape (whether per-state rates, costs, and differences are all included), which is not an output-schema-covered item here.

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%, so both parameters (states and monthly_kwh) are already fully documented, including accepted formats and the 1–100,000 kWh range. The description restates the 'us-average' option and the 900 kWh default rather than adding semantics the schema lacks, so the baseline 3 applies.

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 (compares), specific resource (estimated monthly electricity cost for a given kWh usage), and explicit scope (2–5 U.S. states or the U.S. average) plus the data source (EIA all-in average residential rate). This clearly separates it from siblings like calculate_bill_cost (single bill) or rank_states (ranking), which an agent can infer without opening another schema.

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 rather than stated: the multi-state scope and the 900 kWh default tell an agent when this is the right tool, but there is no explicit routing versus alternatives such as calculate_bill_cost or rank_states, and no stated exclusions or prerequisites. Adequate but leaves the agent to infer the choice.

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