Skip to main content
Glama

battery charge time

battery_charge_time

Estimates battery charge time given capacity in mAh, charge current in mA, charger efficiency, and initial state of charge. Accounts for real-world charging losses (typically 80-90% efficient) to produce time in hours and minutes, energy required in Wh (at an optional voltage, default 3.7V for Li-ion), and the C-rate of the charge. Useful for solar charge controller sizing, USB charging time estimation, lead-acid float charging, and EV battery planning. The C-rate output helps verify the charge current is within safe limits (typically 0.5C-1C for Li-ion). Chain from solar_sizing charge_controller_amps to size a solar charging system end-to-end.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
voltage_vNoNominal battery voltage for energy calculation (V), default 3.7 for Li-ion
efficiencyNoCharger efficiency factor (0-1), default 0.85
capacity_mahYesTotal battery capacity in milliamp-hours (mAh)
initial_soc_pctNoInitial state of charge as percentage (0-100), default 0 (empty)
charge_current_maYesCharge current in milliamps (mA)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
c_rateYesC-rate of the charge (charge_current / capacity)
charge_time_hoursYesEstimated charge time in hours
energy_required_whYesEnergy required to charge at nominal voltage (Wh)
charge_time_minutesYesEstimated charge time in minutes

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries full burden. It explains that real-world charging losses (80-90% efficient) are accounted for, outputs include time in hours/minutes, energy in Wh, and C-rate for safety. It also mentions chaining from solar_sizing. It does not contradict annotations and provides useful behavioral context.

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?

The description is efficient, with about 5 sentences front-loading the primary function, then outputs, use cases, and safety note. Every sentence adds value; no fluff. Slightly longer than necessary, but not wasteful.

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?

Given the presence of an output schema (from context signals), the description focuses on what matters: inputs, calculations, use cases, and safety. It covers all necessary aspects for a calculation tool of moderate complexity.

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?

Schema description coverage is 100%, so baseline is 3. The description adds context (e.g., 'typically 80-90% efficient' for efficiency parameter) but does not significantly enhance meaning beyond schema descriptions. It mentions outputs like C-rate which tie to parameters, but that's not direct parameter semantics.

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 'Estimates battery charge time given capacity in mAh, charge current in mA, charger efficiency, and initial state of charge.' It lists specific outputs (time, energy, C-rate) and distinguishes from sibling tools like battery_autonomy and mah_to_wh by mentioning specific use cases like solar sizing and EV planning.

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?

The description provides explicit use cases: 'solar charge controller sizing, USB charging time estimation, lead-acid float charging, and EV battery planning.' It also notes safety guidelines for C-rate. However, it does not explicitly state when not to use this tool or provide alternatives, which prevents 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.

TDQS

A3.9/5.0
Disambiguation4/5

Despite 89 tools, each has a clearly distinct purpose with detailed descriptions that often reference related tools. Overlap exists (e.g., multiple LoRa/RF tools), but the descriptions are sufficient to distinguish them. Some confusion possible among similar-sounding tools like attenuator_pi and attenuator_tee, but the descriptions explicitly compare them.

Naming Consistency4/5

Consistent underscore-separated lowercase naming. Most tools follow a verb_noun pattern (e.g., capacitor_charge, wire_gauge) or noun_noun (power_cost). Minor inconsistencies such as 'bmi_calculator' vs 'solar_sizing' but overall predictable.

Tool Count2/5

89 tools is far too many for a single MCP server. This scope is more appropriate for multiple specialized servers. The sheer number will slow agent selection and increase cognitive load, reducing coherence.

Completeness3/5

Covers many domains (RF, solar, PCB, networking, math, etc.) but lacks depth in some areas (e.g., no three-phase power, no airflow calculations). Some domains have comprehensive coverage (LoRa/Meshtastic), but others feel incomplete for the tool count.

Resources