Skip to main content
Glama

Energy mode

get_energy_mode
Read-onlyIdempotent

Retrieve a site's current energy mode, Ai+ configuration, forced time slots, SOC floor, active settings, and automatic revert details before changing modes.

Instructions

How the site is run now and how Ai+ is configured.

Returns energy_mode (selfConsumption | amber_smart = Ai+ | au_* = the AU-01..04 student strategies | forced), time_slots (the forced windows), soc_floor_pct, the variant and settings in force, and reverts_at / reverts_to when a forced mode will hand back by itself.

ai_plus is the Ai+ configuration whether or not Ai+ is the mode: active, variant, variant_options, settings, and tunable (every lever with type, min, max, unit and default). Take ranges from it before changing Ai+ with set_energy_mode.

Hosts that support cards render a control card; a click on its buttons is the person's yes.

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": {
      "site_id": "<site_id>"
    },
    "name": "get_energy_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesSite id from list_sites: vendor:station_id, e.g. sungrow:1445844.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.5
    • addedInput schema / properties / site_id / description
      Added value: +"Site id from list_sites: vendor:station_id, e.g. sungrow:1445844."
  2. First observedv0.9.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is low, yet the description adds real context: that forced modes self-revert via reverts_at/reverts_to, and that on card-capable hosts the tool renders a control card whose button clicks constitute the person's consent. That UI/consent behavior is invisible from annotations. Minor gap: it doesn't clarify whether merely calling this tool can trigger that card side effect.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the purpose, then structured into return-value vocabulary, Ai+ config, and host/card behavior. The enum shorthand ('amber_smart = Ai+', 'au_* = the AU-01..04 student strategies') packs a lot of meaning economically. It is dense and jargon-heavy but nearly every clause carries information.

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?

For a one-parameter read tool with an output schema and full safety annotations, this is thorough — it decodes the domain-specific mode values and flags the Ai+ tunable levers the agent will need later. The only residual ambiguity is the relationship between reading the mode and the card-click consent flow.

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?

There is a single parameter with 100% schema coverage, including the format hint 'vendor:station_id, e.g. sungrow:1445844.' The description adds no additional parameter semantics beyond the schema, which is the expected baseline when the schema is fully documented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource precisely ('how the site is run now and how Ai+ is configured') and enumerates the return fields, so an agent knows exactly what this reads. It doesn't explicitly state a verb like 'get' or contrast itself with get_strategy/get_status, but the field list makes the scope unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete procedural guidance: 'Take ranges from it before changing Ai+ with set_energy_mode,' which explicitly routes the agent to a sibling and establishes ordering (read first, then write). There are no when-not conditions or guidance versus get_strategy, but the core 'use before set_energy_mode' directive is clear.

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