Skip to main content
Glama

VoltPlan Wiring Diagrams

Charging Time Calculator

calculate_charging_time
Read-onlyIdempotent

Estimate how long it takes to charge a battery bank from a given state of charge to a target level. Accounts for the bulk charging phase (constant current, up to ~80% SoC) and the slower absorption phase (tapering current, 80-100% SoC). Works for any charging source: solar, shore power, alternator.

Input Schema

NameRequiredDescriptionDefault
batteryVoltageYesBattery bank voltage (e.g. 12, 24, 48)
chargePowerWattsYesCharger output power in watts
batteryCapacityAhYesTotal battery bank capacity in amp-hours
chargeCurrentAmpsNoMaximum charge current in amps (if limited by the charger or battery BMS). If omitted, calculated from power and voltage.
targetStateOfChargePercentNoTarget state of charge in percent (default: 100)
currentStateOfChargePercentYesCurrent state of charge in percent (e.g. 20 for 20%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this is a safe, idempotent, closed-world read/compute operation, so the safety burden is lifted. The description earns credit by disclosing the underlying model that shapes the answer: bulk constant-current phase to ~80% SoC, then tapering absorption phase to 100%, applicable to solar, shore power, or alternator. That context matters for interpreting the result, though it doesn't mention assumptions about efficiency losses or whether the estimate is an upper/lower bound.

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?

Three short sentences: the purpose comes first, then the modeling assumptions that qualify the answer, then applicable charging sources. No filler, though the final sentence is closer to nice-to-have than essential.

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 should convey enough to anticipate the return, and the two-phase discussion does that for a simple numeric estimate. Minor gaps: it doesn't state the unit of the returned duration or note that absorption time is an approximation, which would help an agent present the result.

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 every parameter is already documented in the schema. The description adds no syntax, unit, or edge-case guidance beyond what the schema provides (e.g., no note on how chargeCurrentAmps overrides the power-derived current). Baseline 3 applies.

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?

States a specific verb and resource ('Estimate how long it takes to charge a battery bank') plus the scope (from a given SoC to a target level). It is clearly distinguishable from siblings like calculate_battery_bank or calculate_power_budget by resource, though it never explicitly contrasts itself with them.

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 is implied by the description — use this when you need a charge-duration estimate for a battery bank. There is no explicit when-not-to-use condition and no alternative tool is named, so the agent must infer boundaries from the sibling list.

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.