Skip to main content
Glama

BatterySnap

Model battery summary

model_summary
Read-onlyIdempotent

Aggregate battery metrics across ALL devices of a given brand+model. Returns mean / median / p25 / p75 / min / max for: temperature (C), battery level (%), discharge speed (hours per 100%%), AC / USB / wireless charge speed (hours per 100%%), and awake ratio. Use this to characterize how a model behaves in the field, or to compare a single device against its model average.

Also includes:

  • raw_model_code: representative raw Android Build.MODEL identifier (the most common among devices grouped under this street name), or null if none recorded.

  • url: public BatterySnap web page for the model (https://www.battery-snap.com/brands//models/<raw_model_code>); null when raw_model_code is null.

Pass country and / or continent to restrict to devices of that region; the call fails when fewer than 5 devices of the model remain.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "brand": "<brand>",
      "model": "<model>"
    },
    "name": "model_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandYesLowercase Android brand identifier (e.g. 'samsung').
modelYesModel name, matched against resolved street name (e.g. 'Galaxy S23') or raw Build.MODEL (e.g. 'SM-S911B').
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
urlNoPublic BatterySnap web page for this model. Built from `raw_model_code`; null when `raw_model_code` is null. Locale-agnostic.
brandNoLowercase Android brand identifier.
modelNoResolved model name.
regionNoPresent only when a region filter was applied, e.g. 'country:FR' or 'continent:Asia'.
awake_ratioNo
device_countNoDistinct devices of this model that reported snapshots.
temperature_cNo
raw_model_codeNoRepresentative raw Android Build.MODEL identifier (e.g. 'SM-S911B') — the most common model code among devices grouped under this street name (the smallest on a tie). Null when no device has a non-empty model code.
snapshot_countNoSum of snapshots across all devices of this model.
ac_charge_hoursNo
discharge_hoursNo
usb_charge_hoursNo
battery_level_pctNo
wireless_charge_hoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / raw_model_code / description
      Previous value: -"Representative raw Android Build.MODEL identifier (e.g. 'SM-S911B') — the lexicographically smallest model code among devices grouped under this street name. Null when no device has a non-empty model code."New value: +"Representative raw Android Build.MODEL identifier (e.g. 'SM-S911B') — the most common model code among devices grouped under this street name (the smallest on a tie). Null when no device has a non-empty model code."
  2. Changed8 schema fields changed
    • 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"
  3. 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."
      +}
    • addedOutput schema / properties / region
      Added value: +{
      +  "description": "Present only when a region filter was applied, e.g. 'country:FR' or 'continent:Asia'.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Adds behavior beyond the readOnly/idempotent annotations: a hard k-anonymity floor ('the call fails when fewer than 5 devices of the model remain') that changes how an agent should build filtered calls, plus null-propagation rules for raw_model_code and url. It does not mention what the failure looks like (error vs empty) or pagination/limits, but the threshold disclosure is genuinely useful.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, which is good, but the metric/percentile enumeration and the dedicated 'Also includes' block largely restate what the output schema already defines. There are also escaping artifacts ('100%%') that add noise without information.

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?

For a filtered aggregation with an existing output schema, the description covers scope, filter semantics, and the failure threshold, so an agent can call it correctly. The return-value detail is somewhat redundant with the output schema, which keeps it from a 5.

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 100%, so the baseline is 3, but the description adds conditional meaning: country and continent are intersected, and filtering that drops the cohort below 5 devices causes failure. That is parameter-conditional behavior the schema does not state.

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 ALL devices of a given brand+model'), capitalizes ALL to delimit scope, and explicitly contrasts the result with a single device ('compare a single device against its model average'), which distinguishes it from device_summary and fleet-level siblings.

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 two concrete use cases (characterize model field behavior, benchmark a device against its model average) and explains when to add country/continent filters. It lacks explicit 'use X instead when...' routing to siblings such as device_summary or models, so it stops short of a 5.

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