Query official electricity consumption
get_epe_electricity_consumptionRetrieve monthly EPE electricity consumption and consumer counts from 2004 onward. Select a bounded period, country/region/UF geography, consumption classes, and regulated/free market. The response identifies the exact synchronized official workbook version and discloses aggregation across source system rows.
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": {
"dataset_id": "<dataset_id>"
},
"name": "get_epe_electricity_consumption"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Inclusive last month, YYYY-MM. | |
| from | No | Inclusive first month, YYYY-MM. | |
| limit | No | Maximum rows to return. | |
| states | No | Optional official state codes when geography is state. | |
| classes | No | Consumption classes to include. | |
| markets | No | Electricity-market segments to include. | |
| regions | No | Optional official regions when geography is region. | |
| geography | No | Geographic aggregation level. | country |
| dataset_id | Yes | The official EPE electricity-consumption dataset identifier. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Source-preserving data or schema payload for the selected official dataset. | |
| meta | Yes | Response metadata and source provenance. | |
| links | No | Related API links. |