Skip to main content
Glama

PriceOfElectricity.com: U.S. electricity prices

Electricity bill cost

calculate_bill_cost
Read-onlyIdempotent

Estimates what a monthly electricity usage in kWh costs in a U.S. state or at the U.S. average, using the site's published EIA all-in average residential rate. Returns monthly, daily, and annual cost, the rate used, data period, assumptions, and links.

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": {
      "monthly_kwh": "<monthly_kwh>",
      "state": "<state>"
    },
    "name": "calculate_bill_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYesU.S. state name, two-letter postal code, or slug (e.g. 'Ohio', 'OH', 'new-york'), or 'us-average'.
monthly_kwhYesMonthly electricity usage in kWh (1–100,000).

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 the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's job is added context — and it delivers by disclosing the specific rate basis (all-in average residential, not tiered/marginal) and that assumptions and the data period are returned with the result. It stops short of stating accuracy caveats or whether estimated results differ from an actual utility bill.

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?

Two sentences, both load-bearing: the first states what is computed and on what rate basis, the second enumerates the returned fields. There is no restatement of the tool name or filler wording.

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 two-parameter read-only calculator with no output schema, the description supplies the computation, the rate source, the geographic scope, and an inline list of return fields plus assumptions. An agent has everything needed to call it correctly and interpret the result.

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%: both parameters carry descriptions, including the accepted state formats and the 1–100,000 kWh bounds. The description only echoes the monthly-kWh and state/U.S.-average framing, adding no syntax or edge-case meaning beyond the schema, 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?

The description pairs a specific verb ("Estimates") with a precise resource (cost of monthly kWh usage in a U.S. state or the U.S. average) and names the rate basis it uses ("the site's published EIA all-in average residential rate"). That rate-basis detail separates it from sibling lookups like get_electricity_rate or get_utility_rates, which return rates rather than a computed bill.

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 scope statement (state-level or U.S. average, monthly kWh), but there is no explicit when-to-use vs. when-not guidance and no named alternative such as estimate_household_bill or calculate_appliance_cost. The agent must infer routing from the scope and rate-source wording 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