Get meter consumption
get_consumptionRetrieves half-hourly smart-meter electricity or gas consumption by MPAN/MPRN and serial, with optional date filters, grouping, pagination, and ordering.
Instructions
Get smart-meter consumption for an electricity meter (MPAN + serial) or gas meter (MPRN + serial). Needs OCTOPUS_API_KEY. Half-hourly by default. Electricity is in kWh. Gas is in kWh for SMETS1 and m³ for SMETS2. Use group_by to aggregate, and order_by=period for oldest first (default is newest first). Get the identifiers from get_account.
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": {
"fuel": "<fuel>",
"meter_point": "<meter_point>",
"serial_number": "<serial_number>"
},
"name": "get_consumption"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fuel | Yes | ||
| page | No | Page number for paginated results (use next_page from the previous call). | |
| group_by | No | ||
| order_by | No | ||
| page_size | No | Results per page (default 100, max 1500). | |
| period_to | No | ISO 8601 datetime, ideally with a Z or offset, e.g. 2026-01-01T00:00:00Z. Without a timezone, Europe/London is assumed. | |
| meter_point | Yes | MPAN for electricity, MPRN for gas. | |
| period_from | No | ISO 8601 datetime, ideally with a Z or offset, e.g. 2026-01-01T00:00:00Z. Without a timezone, Europe/London is assumed. | |
| serial_number | Yes | Meter serial number. |