Skip to main content
Glama

Solar Power Genius

Estimate battery runtime

spg_estimate_runtime
Read-onlyIdempotent

How long a battery or power station runs a set of devices, using the site's method: usable energy = rated Wh x 0.85 for AC loads (inverter loss), or x 0.9 for DC loads (USB, 12 V); hours = usable Wh / average watts.

Give either a station (name or slug) or capacity_wh, plus devices and/or extra_watts. With a station, it also says whether its output and surge rating can start and run the load.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "spg_estimate_runtime"
  }
}

Input Schema

NameRequiredDescriptionDefault
dc_loadNoTrue when everything runs on DC (USB, 12 V), skipping the inverter
devicesNoDevices to run at once. Ids: fridge (Fridge, 80 W average, 1200 W startup); freezer (Chest freezer, 60 W average, 900 W startup); cpap (CPAP, no humidifier, 40 W average); router (Modem and router, 20 W average); lights (LED lights, 5 bulbs, 45 W average); laptop (Laptop, 45 W average); phones (Phones, charging, 15 W average); tv (TV, 55 inch LED, 90 W average); sump (Sump pump, 1/3 hp, 160 W average, 1800 W startup); furnace (Gas furnace blower, 400 W average, 1200 W startup); heater (Space heater, low, 750 W average); well (Well pump, 1/2 hp, 350 W average, 2400 W startup).
stationNoStation name or finder slug
capacity_whNoBattery capacity in Wh, if not naming a station
extra_wattsNoExtra average load in watts, for anything not in the device list

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile needs no restating. The description adds real behavioral context beyond them: the 0.85 AC inverter-loss vs 0.9 DC efficiency factors, and the fact that with a station it also validates output and surge ratings against startup loads.

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?

Two compact paragraphs, front-loaded with the purpose and followed by the formula and input contract; no filler sentences. The formula is dense but earns its place because it defines the result semantics in the absence of an output schema.

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?

With no output schema, the description carries the return-value burden and largely meets it by stating hours = usable Wh / average watts and noting the surge/output verdict when a station is named. It is silent on edge cases such as supplying both station and capacity_wh, or neither, which keeps it from a 5.

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, but the description adds meaning the schema does not: the either/or constraint between station and capacity_wh, and that DC mode 'skips the inverter' (explaining the dc_load flag's effect on the math rather than just its type).

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?

States a specific verb and resource ('How long a battery or power station runs a set of devices') and immediately names the method used, so the agent knows both what is computed and how. It is clearly distinguishable from lookup siblings like spg_get_power_station or spg_find_power_stations.

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?

Gives explicit input-shape guidance: 'Give either a station (name or slug) or capacity_wh, plus devices and/or extra_watts', which tells the agent the two mutually exclusive paths. It does not name an alternative tool or say when to prefer this over a station lookup, so it stops short of full routing guidance.

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