Skip to main content
Glama

EV charging cost: home, public and rapid

charging_cost
Read-only

Cost of one charge, per mile and per 100 miles at the UK home price cap rate and average public and rapid pay-as-you-go prices (dated sources), plus an optional own price.

Input Schema

NameRequiredDescriptionDefault
battery_kwhYesBattery size in kWh
end_percentYesTarget charge in percent
price_penceNoOptional own price in pence per kWh
start_percentYesStart charge in percent

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so the agent knows this is a safe, self-contained calculation. The description usefully adds that rates come from dated sources and are UK-specific and that an own price can override them, but says nothing about rounding, currency output, or staleness handling.

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?

A single dense sentence with no filler, and the core output units (per charge, per mile, per 100 miles) are front-loaded before the tariff qualifiers. Minor parenthetical load but nothing that wastes the reader's time.

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-shape burden and does describe the three cost figures produced. It is largely sufficient for a 4-parameter pure calculation tool, with only currency and precision left unstated.

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 battery_kwh, start_percent, end_percent and price_pence are already self-documenting. The description adds only the meaning of price_pence as an optional own price, which the schema also states, so 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 computation (cost of one charge, per mile and per 100 miles) against named UK tariff bases, so the agent knows exactly what is produced. It does not, however, name or contrast itself with plausible siblings such as charging_time or charger_size, so differentiation relies on the 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 is only implied: the mention of home cap, public and rapid prices suggests this is the costing tool rather than a timing or sizing tool. There is no explicit when-to-use/when-not statement and no routing to siblings such as charging_time for duration questions.

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