Skip to main content
Glama

BatterySnap

Battery stats by region

region_summary
Read-onlyIdempotent

Compare battery behaviour across regions in one call: one entry per continent or per country, each with the same mean / median / p25 / p75 / min / max blocks as fleet_summary (temperature, level, discharge and charge hours, awake ratio). Narrow with brand / model (e.g. how one model fares per continent) or with continent (e.g. group_by='country' within 'Africa').

The region is derived from the time zone the phone is set to (not GPS / IP), so travellers and manual settings blur it. Regions with fewer than 5 devices are left out and only counted (suppressed_*), as are devices whose time zone names no place (unlocated_device_count); check each group's device_count before comparing — small groups are noisy.

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

Input Schema

NameRequiredDescriptionDefault
brandNoOptional lowercase brand filter.
modelNoOptional model filter — matches resolved street name or raw Build.MODEL, case-insensitive.
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.
group_byNo'continent' (default) or 'country' (ISO 3166 alpha-2).continent
continentNoOptional continent. Keeps only devices whose time zone lies there. Combine with `country` for an intersection.

Output Schema

NameRequiredDescriptionDefault
scopeNo'fleet', or the comma-joined filters applied (e.g. 'brand:samsung,continent:Europe').
groupsNoOne entry per region with enough devices, most devices first.
group_byNo'continent' or 'country'.
min_devices_per_groupNoGroups with fewer devices than this are left out of `groups` and only counted below.
suppressed_group_countNoRegions left out for having too few devices.
unlocated_device_countNoDevices whose time zone names no place (UTC, GMT, unset): in no group, only counted here.
suppressed_device_countNoDevices in those left-out regions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 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"
    • addedInput schema / properties / group_by / enum
      Added value: +[
      +  "continent",
      +  "country"
      +]
    • removedInput schema / properties / group_by / pattern
      Removed value: -"^(continent|country)$"
    • removedInput schema / properties / model / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / model / default
      Removed value: -null
    • addedInput schema / properties / model / type
      Added value: +"string"
  2. Changed7 schema fields changed
    • removedOutput schema / properties / groups / items / properties / continent / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedOutput schema / properties / groups / items / properties / continent / description
      Previous value: -"Continent of this group (group_by='continent'). Null for devices whose time zone names no place (UTC, GMT, unset)."New value: +"Continent of this group (group_by='continent')."
    • addedOutput schema / properties / groups / items / properties / continent / type
      Added value: +"string"
    • removedOutput schema / properties / groups / items / properties / country / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedOutput schema / properties / groups / items / properties / country / description
      Previous value: -"ISO 3166 alpha-2 country code of this group (group_by='country'). Null for devices whose time zone names no place."New value: +"ISO 3166 alpha-2 country code of this group (group_by='country')."
    • addedOutput schema / properties / groups / items / properties / country / type
      Added value: +"string"
    • addedOutput schema / properties / unlocated_device_count
      Added value: +{
      +  "description": "Devices whose time zone names no place (UTC, GMT, unset): in no group, only counted here.",
      +  "type": "integer"
      +}
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly, idempotent, not open-world), and the description adds real behavioral substance beyond them: the region is derived from the device's time-zone setting rather than GPS/IP, so traveller and manual settings blur results. It also discloses privacy suppression (regions with fewer than 5 devices are excluded and only counted in suppressed_*), unlocated devices, and noise caveats on small groups — none of which the annotations convey.

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?

Two short paragraphs, front-loaded with what the tool returns before moving to the filters and then the caveats. Every sentence carries information, though the time-zone caveat appears twice (once in prose, once echoed from the schema) and the statistic list is dense.

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?

An output schema exists, so return structure need not be restated, and the description instead covers the things an agent could get wrong: filter combination semantics, region derivation, and suppressed/unlocated device handling. For a 5-parameter aggregation tool this leaves no material gap.

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% and the enum on continent and group_by is already documented, so the baseline applies. The description adds only illustrative framing ('how one model fares per continent', group_by='country' within 'Africa') and repeats the time-zone caveat already stated in the country parameter description, rather than adding new syntax or semantics.

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 concrete verb and resource ('Compare battery behaviour across regions') and pins the output shape ('one entry per continent or per country, each with the same mean / median / p25 / p75 / min / max blocks as fleet_summary'). The explicit reference to fleet_summary plus the group_by granularity lets an agent distinguish it from siblings without opening a 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?

Gives concrete usage contexts: narrow with brand/model ('how one model fares per continent') or with continent ('group_by=country within Africa'). It is clear when this tool fits, but it never states the counterpart case — e.g. use fleet_summary for a single global rollup — so the routing is implied rather than explicit.

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