Skip to main content
Glama

eng_battery_runtime

Read-only

Battery runtime and sizing estimator — Battery life estimate (offline). capacity= (2000mah, 100ah or 50wh) and load= (500ma, 2a or 60w; watt loads go through efficiency=, default 0.9). Or duty-cycled IoT loads with active_ma= + active_pct= + sleep_ua=. Optional chemistry= li-ion (default), lifepo4, lead-acid, nimh, alkaline; voltage= (else nominal x series=), series=, parallel=, dod= depth of discharge (chemistry default), temp_c= cold derating, target_hours= for required capacity. Returns pack Ah/Wh, battery current and C-rate, derating factors (Peukert for lead-acid/alkaline), usable Ah, runtime in hours and human form, required capacity for the target, and flags (C-rate over the chemistry's rating, deep lead-acid cycling, charging lithium below 0 C). Price: $0.002 USDC (Base, via x402).

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": {
      "capacity": "<capacity>",
      "load": "<load>"
    },
    "name": "eng_battery_runtime"
  }
}

Input Schema

NameRequiredDescriptionDefault
loadYese.g. 500ma
capacityYese.g. 2000mah

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses the default efficiency assumption (0.9 for watt loads), default chemistry, derating behavior (Peukert for lead-acid/alkaline, cold temp derating), the exact warning flags that can be raised, and a payment/access requirement with price ('$0.002 USDC (Base, via x402)'). Cost, assumptions, and failure flags are exactly the behavioral context annotations cannot convey.

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?

Purpose is front-loaded and little is truly irrelevant, but the body is a dense parenthetical run-on ('capacity= (2000mah, 100ah or 50wh) and load= (...; watt loads go through efficiency=, default 0.9)') that is hard to parse. Splitting modes, optional knobs, returns, and pricing into discrete clauses would cost no information and gain much readability.

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

Completeness5/5

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

With no output schema and only two required parameters, the description fully covers what comes back (pack Ah/Wh, C-rate, derating factors, usable Ah, runtime in hours plus human form, required capacity, flags), the defaults that affect results, and the payment requirement. Nothing an agent needs before invoking it is missing.

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?

The schema documents only capacity and load with bare examples, so the description carries real weight: it fixes accepted unit formats ('2000mah, 100ah or 50wh'; '500ma, 2a or 60w'), explains how watt loads are routed through efficiency, and defines optional chemistry/dod/temp_c/target_hours semantics with defaults. It loses a point because several documented knobs (chemistry, series, parallel, dod, temp_c, target_hours, duty-cycle params) are absent from the input schema, so an agent cannot tell which are actually accepted without trial.

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?

Opens with a specific verb+resource compound: 'Battery runtime and sizing estimator', immediately followed by the concrete modes it supports (capacity+load, or duty-cycled IoT loads) and its outputs (pack Ah/Wh, runtime, required capacity, flags). That is enough to distinguish it from every listed sibling, which are all other engineering-domain calculators.

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 clear mode-selection guidance: a straight capacity/load estimate, 'Or duty-cycled IoT loads with active_ma= + active_pct= + sleep_ua=', and 'target_hours= for required capacity' as the sizing path. It never states when NOT to use it or names an alternative tool, so it stops short of a 5.

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