Skip to main content
Glama
darronz

Octopus Energy MCP Server

by darronz

get_gas_consumption

Retrieve gas consumption data from Octopus Energy accounts for specified date ranges, with options to group by time periods and customize result formats.

Instructions

Get gas consumption data from Octopus Energy. Returns consumption in kWh for SMETS1 meters or cubic meters for SMETS2 meters. MPRN and serial number can be provided as parameters or will use values from GAS_MPRN and GAS_SERIAL_NUMBER environment variables.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mprnNoThe MPRN (Meter Point Reference Number) for the gas meter. Optional if GAS_MPRN is set in .env
serial_numberNoThe meter serial number. Optional if GAS_SERIAL_NUMBER is set in .env
period_fromNoStart date/time in ISO 8601 format with UTC indicator (e.g., 2024-01-01T00:00:00Z)
period_toNoEnd date/time in ISO 8601 format with UTC indicator (e.g., 2024-01-31T23:59:59Z)
page_sizeNoNumber of results per page (default: 100, max: 25000)
order_byNoSet to 'period' to return earliest records first (default: latest first)
group_byNoGroup results by: day, week, month, or quarter
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses key behavioral traits: it returns consumption data in different units (kWh for SMETS1, cubic meters for SMETS2), and it explains how parameters can be sourced from environment variables. This adds useful context beyond the input schema, though it could mention rate limits or error handling for completeness.

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 appropriately sized and front-loaded, starting with the core purpose and key details. Every sentence earns its place by providing essential information without redundancy, making it efficient and well-structured for quick understanding.

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?

Given the complexity of 7 parameters, no annotations, and no output schema, the description does a good job by explaining return units and parameter sourcing. However, it lacks details on output format, error cases, or authentication needs, which would enhance completeness for a data retrieval tool with multiple options.

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 description coverage is 100%, so the input schema already documents all parameters thoroughly. The description adds minimal value by noting that MPRN and serial number can use environment variables, but it does not provide additional meaning for other parameters like period_from or group_by. This meets the baseline of 3 when schema coverage is high.

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 verb ('Get') and resource ('gas consumption data from Octopus Energy'), specifying what the tool does. It distinguishes from the sibling tool 'get_electricity_consumption' by focusing on gas rather than electricity, making the purpose specific and differentiated.

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 implies usage by mentioning that MPRN and serial number can come from environment variables if not provided as parameters, which gives some context. However, it does not explicitly state when to use this tool versus the sibling tool or any alternatives, leaving guidance at an implied level without clear exclusions or comparisons.

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/darronz/octopus-mcp-server'

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