Skip to main content
Glama

bosch_battery_trends

Analyze Bosch eBike battery health over time by computing per-period averages and deltas for charge cycles, energy delivered, and remaining capacity to detect degradation.

Instructions

Analyse battery health trends for your Bosch eBike over time.

Computes per-period averages and deltas for:

  • Charge cycle count (total, rate of accumulation)

  • Average battery level at time of sync

  • Lifetime energy delivered (total kWh ever pushed through the battery)

  • Remaining energy trend (indicates capacity degradation over time)

A declining remaining_energy_wh at a constant charge level indicates the battery capacity is degrading. Compare early and recent snapshots for a long-term health picture.

Args: bike_id: Optional bike UUID. If omitted, includes all bikes. period: Aggregation period. Options: "weekly", "monthly" (default), "quarterly". start_date: Start date (YYYY-MM-DD, YYYY-MM, Nd, or None for all data). end_date: End date. Default: today.

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

Input Schema

NameRequiredDescriptionDefault
periodNomonthly
bike_idNo
end_dateNo
start_dateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.10.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "bosch_battery_trendsOutput",
      -  "type": "object"
      -}New value: +null
  2. Changed1 schema field changed
    • addedInput schema / properties / period / enum
      Added value: +[
      +  "weekly",
      +  "monthly",
      +  "quarterly"
      +]
  3. Addedv0.2.3
  4. Removedv0.2.2
  5. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden, and it does disclose non-obvious behavior: that values are aggregated per period with averages and deltas, and it provides interpretation semantics (declining remaining_energy_wh at constant charge level indicates capacity degradation). It omits whether the call is read-only, any data-availability preconditions (e.g. needing a prior sync), and the shape of the returned structure.

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?

Front-loads purpose, then a tight bulleted list of computed metrics, then interpretation guidance, then args — a clear scan order with no filler prose. It is on the longer side and duplicates the enum/default already in the schema, but nearly every line adds information an agent would otherwise have to guess.

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?

For a four-parameter, all-optional read tool with no annotations and no output schema, the definition covers what the tool computes, how to interpret each metric, and the meaning and accepted formats of every argument. The only residual gap is the concrete response structure, which is largely implied by the 'per-period averages and deltas' framing.

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?

Schema coverage is 0%, so the description must compensate, and it does: it explains bike_id as an optional UUID with an all-bikes fallback, describes period as the aggregation period with its default, and — crucially — gives accepted start_date formats ('YYYY-MM-DD, YYYY-MM, Nd, or None for all data') plus the end_date default of today, none of which appear in the schema. It repeats the period enum already present in the schema, which is minor redundancy.

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 ('Analyse battery health trends for your Bosch eBike over time') and enumerates exactly what is computed (charge cycle count, average battery level, lifetime kWh, remaining energy trend), which separates it from point-in-time siblings like bosch_get_soc or bosch_get_capacity. It does not name those siblings explicitly, so differentiation is by inference rather than routing.

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?

Includes one usage cue — 'Compare early and recent snapshots for a long-term health picture' — which implies the tool is for longitudinal analysis rather than a single reading. However, it never states when NOT to use it or points to the alternative tools (bosch_get_capacity, bosch_get_soc) for instantaneous values, leaving the choice to the agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.