Skip to main content
Glama
jiweiqi

heatpump-mcp-server

get_electricity_rate

Fetch the current residential electricity rate in $/kWh for any U.S. ZIP code to estimate energy costs.

Instructions

Get the current electricity rate for a specific ZIP code location.

Fetches residential electricity rates from EIA (Energy Information Administration) API. Requires EIA_API_KEY environment variable to be set.

Returns: Dictionary with: - zip_code: Input ZIP code - electricity_rate: Rate in $/kWh - unit: Always "$/kWh" - source: Data source information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
zip_codeYes5-digit US ZIP code

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries full burden. It discloses that it fetches from an external API (EIA), requires an API key, and returns a dictionary with specific fields. It does not mention error handling or rate limits, but for a simple read operation, this is sufficient.

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 very concise: two main sentences followed by bulleted return fields. It is front-loaded with the core purpose and contains no fluff.

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?

Given a single parameter, no annotations, and an output schema present, the description is complete. It explains the data source, prerequisite, and return format.

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?

The schema has 100% coverage for the one parameter 'zip_code' with a clear description. The description adds no extra detail beyond 'ZIP code location', so baseline 3 is appropriate.

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 clearly states the tool gets the current electricity rate for a specific ZIP code, using a verb (get) and resource (electricity rate). It distinguishes from sibling tools which are all about heat pump sizing.

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 mentions the requirement of EIA_API_KEY environment variable as a prerequisite, but does not explicitly state when to use this tool versus alternatives or when not to use it. Usage is implied by the context of electricity rates.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jiweiqi/heatpump-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server