Skip to main content
Glama

PriceOfElectricity.com: U.S. electricity prices

Utility peak (time-of-use) hours

get_peak_hours
Read-onlyIdempotent

Gets the peak, off-peak and super off-peak hours and per-kWh prices of a large utility's main time-of-use plan (e.g. PG&E, SCE, SRP, Duke Energy), checked against the utility's tariff. Omit utility to list the covered utilities.

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

Input Schema

NameRequiredDescriptionDefault
utilityNoUtility name, short name, or slug (e.g. 'PG&E', 'sce', 'Salt River Project'). Omit to list all.

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 declare readOnlyHint=true, idempotentHint=true, openWorldHint=false, and destructiveHint=false, so the safety profile is clear. The description adds meaningful context beyond annotations: it specifies that results are checked against the utility's tariff and that it returns the main time-of-use plan, not arbitrary plans. It does not describe return format details, but no output schema exists for that concern.

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?

The description is two efficient sentences with no filler. The primary capability is front-loaded, followed by the key parameter behavior. Every sentence earns its place.

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 read-only lookup with one optional parameter and no output schema, the description gives enough to call it correctly: what it returns, which utilities are covered, and what omission of the parameter does. It could mention whether multiple plans per utility exist or any geographic limits, but the missing details are minor.

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 schema already documents the utility parameter with examples and the omit-to-list behavior. The description repeats the omit behavior but adds no additional syntax, format, or validation meaning beyond what the schema provides. Baseline 3 is appropriate when the schema carries the parameter documentation.

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: getting peak, off-peak, and super off-peak hours plus per-kWh prices for a large utility's main time-of-use plan. It is clear what the tool returns and includes concrete utility examples. It does not explicitly differentiate itself from siblings like get_utility_rates or get_electricity_rate, so it falls short of the top score.

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?

The description explains the parameter-level behavior of omitting utility to list covered utilities, which is useful context. However, it gives no tool-level guidance on when to use this versus sibling rate tools, nor any exclusions or prerequisites. Usage is only implied by the tool's purpose.

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