Skip to main content
Glama

BatterySnap

Fleet battery summary

fleet_summary
Read-onlyIdempotent

Aggregate battery metrics across the entire fleet, or across one brand when brand is provided, optionally restricted to one country / continent. Returns mean / median / p25 / p75 / min / max for the same set of metrics as model_summary. Use this for fleet-wide baselines that a single device or model can be compared against. A region scope with fewer than 5 devices is refused; to compare several regions at once use region_summary.

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

Input Schema

NameRequiredDescriptionDefault
brandNoOptional lowercase brand identifier. If set, aggregates across that brand only; otherwise across the entire fleet.
countryNoOptional ISO 3166 alpha-2 country code (e.g. 'FR', 'IN', 'US'), case-insensitive. Keeps only devices whose time zone belongs to that country. The region comes from the phone's time-zone setting, not GPS / IP.
continentNoOptional continent. Keeps only devices whose time zone lies there. Combine with `country` for an intersection.

Output Schema

NameRequiredDescriptionDefault
scopeNo'fleet' for the whole fleet, else the comma-joined filters applied, e.g. 'brand:samsung', 'country:FR' or 'brand:samsung,continent:Asia'.
awake_ratioNo
model_countNoDistinct resolved models in scope.
device_countNoDistinct devices in scope.
temperature_cNo
snapshot_countNoSum of snapshots across all devices in scope.
ac_charge_hoursNo
discharge_hoursNo
usb_charge_hoursNo
battery_level_pctNo
wireless_charge_hoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • removedInput schema / properties / brand / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / brand / default
      Removed value: -null
    • addedInput schema / properties / brand / type
      Added value: +"string"
    • removedInput schema / properties / continent / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / continent / default
      Removed value: -null
    • changedInput schema / properties / continent / description
      Previous value: -"Optional continent, case-insensitive: 'Africa', 'Antarctica', 'Asia', 'Europe', 'North America', 'Oceania' or 'South America'. Keeps only devices whose time zone lies there. Combine with `country` for an intersection."New value: +"Optional continent. Keeps only devices whose time zone lies there. Combine with `country` for an intersection."
    • addedInput schema / properties / continent / enum
      Added value: +[
      +  "Africa",
      +  "Antarctica",
      +  "Asia",
      +  "Europe",
      +  "North America",
      +  "Oceania",
      +  "South America"
      +]
    • addedInput schema / properties / continent / type
      Added value: +"string"
    • removedInput schema / properties / country / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / country / default
      Removed value: -null
    • addedInput schema / properties / country / type
      Added value: +"string"
  2. Changed3 schema fields changed
    • addedInput schema / properties / continent
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional continent, case-insensitive: 'Africa', 'Antarctica', 'Asia', 'Europe', 'North America', 'Oceania' or 'South America'. Keeps only devices whose time zone lies there. Combine with `country` for an intersection."
      +}
    • addedInput schema / properties / country
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional ISO 3166 alpha-2 country code (e.g. 'FR', 'IN', 'US'), case-insensitive. Keeps only devices whose time zone belongs to that country. The region comes from the phone's time-zone setting, not GPS / IP."
      +}
    • changedOutput schema / properties / scope / description
      Previous value: -"'fleet' for whole fleet, or 'brand:<lowercase-brand>' when scoped to a brand."New value: +"'fleet' for the whole fleet, else the comma-joined filters applied, e.g. 'brand:samsung', 'country:FR' or 'brand:samsung,continent:Asia'."
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/closed-world, so the safety profile is covered. The description adds two real behavioral facts beyond them: aggregates return mean/median/p25/p75/min/max matching `model_summary`, and small-cohort regions are rejected rather than returned. It doesn't mention response shape or empty-result behavior, but the output schema likely covers the former.

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-loaded with the core action and scope, then the differentiating alternatives. It runs a bit long across five sentences and repeats the metric list, but each sentence carries routing or behavioral information; only the metric enumeration borders on redundant with the output schema.

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 zero-required-parameter read aggregate with a 100%-documented schema and a declared output schema, the description covers scope, intended use, sibling routing, cohort refusal, and metric coverage. Nothing an agent needs in order to call it correctly is missing.

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 coverage is 100%, so each parameter (brand, country, continent) is already documented with format and semantics. The description reinforces the combination logic but adds no new parameter-level detail beyond the minimum-device refusal rule that applies to country/continent scoping — baseline 3 is appropriate.

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?

States a specific verb and resource — aggregate battery metrics across the fleet — and immediately scopes it (all fleet, one brand, optionally one country/continent). It names the sibling it complements (`model_summary`) and the one to use for multi-region comparison (`region_summary`), so an agent can discriminate without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly gives the use case ("fleet-wide baselines that a single device or model can be compared against") and an alternative with its triggering condition ("to compare several regions at once use `region_summary`"). It also states a refusal condition (region scope under 5 devices), which is exactly the kind of guidance that prevents failed calls.

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