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
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": {
"zip_code": "<zip_code>"
},
"name": "get_electricity_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip_code | Yes | 5-digit US ZIP code |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||