Skip to main content
Glama

Charge cost

charge_cost
Read-onlyIdempotent

For questions about what an e-bike or e-scooter costs to charge or to run at home in the US. Returns what a full charge of the battery costs at home and the cost per 100 miles, at a state's average home electricity price (U.S. Energy Information Administration). A named bike or scooter uses the battery size and range its brand states, as listed on Bike-Specs; the battery size can instead be given in watt-hours, or in volts and amp-hours. Without a state, the US average price is used. The result is an estimate: a person's own electricity rate changes it. The figures and the method are Bike-Specs'.

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": "charge_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
bikeNothe e-bike or e-scooter's brand and model, e.g. 'Aventon Level 3'
stateNothe US state (name or two-letter code) for its average home price; leave out for the US average
voltsNothe battery's voltage, with amp_hours, when the watt-hours are not known
amp_hoursNothe battery's amp-hours (Ah), with volts
battery_whNothe battery's size in watt-hours (Wh), if known; it wins over the bike's
miles_per_chargeNomiles ridden on a full charge, for the cost per 100 miles; the brand's claim is used for a named bike

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine context beyond that: the answer is an estimate, the user's own electricity rate shifts it, and the figures and method come from Bike-Specs with EIA price data. It does not describe the shape or units of the returned figures.

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?

Purpose is front-loaded in the first sentence and the fallback rules follow in a logical order. Some redundancy exists between 'as listed on Bike-Specs' and the closing 'The figures and the method are Bike-Specs'', which repeats the attribution already made earlier.

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 six all-optional parameters, no output schema and full schema coverage, the description covers what matters: what is computed, the default when state is omitted, and the precedence among battery inputs. The remaining gap is return-value shape and units (currency, per-100-mile basis), which the absence of an output schema leaves only loosely implied.

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 the schema already explains every one of the six optional parameters, including that battery_wh wins over the bike's and that the brand's range claim is used for a named bike. The description restates that precedence and the volts/amp-hours alternative rather than adding new meaning, so the baseline 3 applies.

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 opens with a specific verb-and-resource framing: it returns what a full home charge costs and the cost per 100 miles for an e-bike or e-scooter in the US. That scope (charging/running cost) is unmistakably distinct from every sibling listed (find_bikes, compare_bikes, near_me, buy_online, etc.), so an agent can route to it without opening the schema.

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 lead sentence 'For questions about what an e-bike or e-scooter costs to charge or to run at home in the US' is an explicit usage trigger, and the description supplies input fallbacks (no state → US average, watt-hours instead of a named bike). It stops short of naming when-not conditions or pointing to a sibling alternative, but none of the siblings plausibly overlap, so the omission is minor.

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