Skip to main content
Glama

Renewably

Home battery charge times

get_home_battery_times
Read-onlyIdempotent

For a typical weekday and weekend day at this time of year (on a fixed-window or flat tariff, today's rates): the cheapest charge slot to fill a home battery before the 16:00 peak, an optional afternoon top-up, and what it saves a home using usage kWh a year – the battery runs the house after its charge until it's empty, through a typical day's use. No export, and not counting the battery's wear; with solar_kwp, also how full to charge overnight for the next day's sun.

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": {
      "region": "<region>"
    },
    "name": "get_home_battery_times"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateNoGrid charge rate, kW (0.5-15, default 3).
usageNoThe home's electricity use, kWh a year (500-30000, default 2500 – an average home).
exportNoHow export is paid: `paired` (the tariff's own export tariff, default), `fixed` (with export_rate), `fit` (the Feed-in Tariff's deemed export: paid whatever is exported, so the sun used at home gives nothing up), `none`, or an export tariff's key from list_tariffs?direction=export (used where the tariff can have it, else its own).
regionYesAgile region: a letter A-P, the slug from list_regions (eg `C` or `london`), or one of the well-known places list_regions lists for it (eg `Manchester`).
tariffNoA tariff's key from list_tariffs (default `agile`), eg `go`, `edf-go-electric`, `eon-next-drive`.agile
batteryNoUsable battery, kWh (2-50, default 10).
solar_kwpNoThe home's solar panels, kWp (0.2-50): the answer then counts their forecast spare sun – see the docs' Solar panels section.
export_rateNoA fixed export rate, p/kWh (0-100).
solar_pitchNoTheir angle from flat, degrees (0-90, default 35).
solar_facingNoThe way they face: S, SE, SW, E, W, NE, NW or N – or a bearing in degrees (south is 180). Default S.
battery_exportNoWhat the battery may export: `terms` (default) what the export tariff pays for – everything on Octopus's, only what the panels put in on the others; `all` what it charged from the grid too, on any export tariff – check the supplier pays for that; `solar` only what the panels put in, even on Octopus's; `never` – `evening_export` then says what that leaves. Without panels, give `export` too: everything a battery on its own exports came from the grid.terms
solar_inverter_kwNoThe inverter's limit, kW (0.5-50), if smaller than the panels.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / region / description
      Previous value: -"Agile region: a letter A-P or the slug from list_regions (eg `C` or `london`); list_regions lists well-known places in each."New value: +"Agile region: a letter A-P, the slug from list_regions (eg `C` or `london`), or one of the well-known places list_regions lists for it (eg `Manchester`)."
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so safety is covered; the description goes further by disclosing the modelling assumptions an agent cannot get elsewhere — no export revenue counted, battery wear excluded, battery runs the house until empty through a typical day, and that `solar_kwp` additionally yields an overnight charge target for the next day's sun. The phrase 'No export' sits awkwardly against the `export`, `export_rate` and `battery_export` parameters and risks being read as 'export is unsupported', which slightly muddies the disclosure.

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

Conciseness3/5

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

Everything is packed into a single em-dash-chained sentence, with the headline (cheapest charge slot before the 16:00 peak) reasonably front-loaded but the caveats and the solar case trailing in the same run-on. It is information-dense with little outright waste, yet the lack of sentence breaks makes it harder to parse than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter modelling tool with no output schema, the description does say what the answer contains (charge slot, top-up, savings) and states the key modelling assumptions. Remaining gaps matter, though: the default tariff is `agile` while the framing says fixed-window or flat tariff, the unit of the saving is unstated, and how the export parameters reconcile with 'No export' is unexplained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description earns above that by tying parameters to outcomes: `usage` is framed as the annual consumption the saving is computed for, and `solar_kwp` is explained as adding forecast spare sun and changing the overnight charge target. It does not touch the more intricate parameters (the `battery_export` modes, `export` variants, `solar_facing`/`solar_pitch`), but the schema descriptions for those are already detailed.

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 concrete deliverable: the cheapest charge slot to fill a home battery before the 16:00 peak, an optional afternoon top-up, and the resulting annual saving for a home using `usage` kWh. That is a specific resource plus a specific computed output, not a restated title. It does not name or contrast itself with siblings such as `plan_home_battery` or `get_heat_pump_times`, so an agent must infer the boundary from the tool name alone.

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?

Usage context is present but only implicitly: 'for a typical weekday and weekend day at this time of year (on a fixed-window or flat tariff, today's rates)' tells the agent the scenario the answer applies to. There is no explicit when-to-use / when-not guidance and no named alternative for a full battery plan or for EV charging, so routing between this and `plan_home_battery` is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources