Skip to main content
Glama

BatterySnap

List models

models
Read-onlyIdempotent

List the phone models BatterySnap has battery statistics for (of one brand, several brands or all), most devices first, with each model's number of devices, average battery temperature in Celsius and Android SDK range (50 models unless limit says otherwise; offset pages).

Each entry is grouped by the resolved street name (e.g. 'Galaxy S23'), which may cover several raw Android Build.MODEL identifiers (carrier variants, regional SKUs, …). For URL building, every entry also exposes:

  • raw_model_code: a representative raw Build.MODEL identifier (the most common one among devices grouped under this street name, the smallest on a tie), or null if no device reported a non-empty model code.

  • url: the public BatterySnap web page for the model, e.g. https://www.battery-snap.com/brands/samsung/models/SM-S911B. Built from brand + raw_model_code; null when either is null. The page lists the devices reporting that exact raw model and links to the other variants.

Pass min_device_count / max_device_count to filter models by how many devices were recorded. Pass sort to order by another value (temperature, API levels) or by name, e.g. sort=[{"by": "model"}]. For battery life or charging rankings, use top_models instead. Pass fields to keep only specific attributes in each entry (typically fields=['brand', 'model', 'device_count', 'url']).

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

Input Schema

NameRequiredDescriptionDefault
sortNoSort keys, applied in list order: each next key only orders entries the keys before it tie, e.g. [{"by": "device_count"}] = most devices first, [{"by": "temperature_c", "order": "desc"}, {"by": "device_count"}]. Missing values go last. Sorting runs before `limit` / `offset`, so [{"by": "device_count"}] with limit=10 is the 10 with the most devices. Omit for most devices first; brand then model always breaks the ties left.
brandNoOne lowercase brand identifier (e.g. 'samsung'), as in the other tools. Use `brands` for several.
limitNoReturn at most this many models, after filtering and sorting (50 when omitted).
brandsNoSeveral lowercase brand identifiers (e.g. ['samsung', 'xiaomi']) to fetch models for. Matched case-insensitively. Omit `brand` and `brands` to list models across all brands.
fieldsNoAttributes to keep in each returned entry, to shrink the response. Omit (or pass an empty list) for all of them.
offsetNoSkip this many entries before returning results — use with `limit` to page through a long list. Defaults to 0.
max_device_countNoDrop entries with more than this many recorded devices. Use to skip very common entries. Omit for no upper bound.
min_device_countNoDrop entries with fewer than this many recorded devices. Defaults to 1 (keep all).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / result / items / properties / raw_model_code / description
      Previous value: -"Representative raw Android Build.MODEL identifier (e.g. 'SM-S911B') for this model — the lexicographically smallest model code among all devices grouped under this street name. Multiple raw codes can map to one street name (e.g. carrier variants); this picks one as canonical for URL construction. Null when no device has a non-empty model code."New value: +"Representative raw Android Build.MODEL identifier (e.g. 'SM-S911B') for this model — the most common model code among all devices grouped under this street name (the smallest on a tie). Multiple raw codes can map to one street name (e.g. carrier variants); this picks one as canonical for URL construction, and its page links to the other variants. Null when no device has a non-empty model code."
  2. Changed4 schema fields changed
    • addedInput schema / properties / brand
      Added value: +{
      +  "description": "One lowercase brand identifier (e.g. 'samsung'), as in the other tools. Use `brands` for several.",
      +  "type": "string"
      +}
    • changedInput schema / properties / brands / description
      Previous value: -"One or more lowercase Android device brand identifiers (e.g. ['samsung', 'xiaomi']) to fetch models for. Matched case-insensitively. Omit (or pass an empty list) to return models across all brands."New value: +"Several lowercase brand identifiers (e.g. ['samsung', 'xiaomi']) to fetch models for. Matched case-insensitively. Omit `brand` and `brands` to list models across all brands."
    • changedInput schema / properties / limit / description
      Previous value: -"Return at most this many models (applied after filtering and sorting). Omit for no cap."New value: +"Return at most this many models, after filtering and sorting (50 when omitted)."
    • changedInput schema / properties / sort / description
      Previous value: -"Sort keys, applied in list order: each next key only orders entries the keys before it tie, e.g. [{\"by\": \"device_count\"}] = most devices first, [{\"by\": \"temperature_c\", \"order\": \"desc\"}, {\"by\": \"device_count\"}]. Missing values go last. Sorting runs before `limit` / `offset`, so [{\"by\": \"device_count\"}] with limit=10 is the 10 with the most devices. Omit for alphabetical order; brand then model always breaks the ties left."New value: +"Sort keys, applied in list order: each next key only orders entries the keys before it tie, e.g. [{\"by\": \"device_count\"}] = most devices first, [{\"by\": \"temperature_c\", \"order\": \"desc\"}, {\"by\": \"device_count\"}]. Missing values go last. Sorting runs before `limit` / `offset`, so [{\"by\": \"device_count\"}] with limit=10 is the 10 with the most devices. Omit for most devices first; brand then model always breaks the ties left."
  3. Changed32 schema fields changed
    • removedInput schema / properties / brands / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / brands / default
      Removed value: -null
    • addedInput schema / properties / brands / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / brands / type
      Added value: +"array"
    • removedInput schema / properties / fields / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / fields / default
      Removed value: -null
    • changedInput schema / properties / fields / description
      Previous value: -"Optional whitelist of attribute names to keep in each returned entry, used to shrink the response. When omitted or empty, all attributes documented in the output schema are returned. Unknown names are silently ignored."New value: +"Attributes to keep in each returned entry, to shrink the response. Omit (or pass an empty list) for all of them."
    • addedInput schema / properties / fields / items
      Added value: +{
      +  "enum": [
      +    "brand",
      +    "model",
      +    "raw_model_code",
      +    "url",
      +    "device_count",
      +    "temperature_c",
      +    "min_android_api_level",
      +    "max_android_api_level"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / fields / type
      Added value: +"array"
    • removedInput schema / properties / limit / anyOf
      Removed value: -[
      -  {
      -    "minimum": 1,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / limit / default
      Removed value: -null
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • addedInput schema / properties / limit / type
      Added value: +"integer"
    • removedInput schema / properties / max_device_count / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / max_device_count / default
      Removed value: -null
    • addedInput schema / properties / max_device_count / minimum
      Added value: +0
    • addedInput schema / properties / max_device_count / type
      Added value: +"integer"
    • removedInput schema / properties / min_device_count / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / min_device_count / default
      Removed value: -null
    • addedInput schema / properties / min_device_count / minimum
      Added value: +0
    • addedInput schema / properties / min_device_count / type
      Added value: +"integer"
    • removedInput schema / properties / offset / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / offset / default
      Removed value: -null
    • addedInput schema / properties / offset / minimum
      Added value: +0
    • addedInput schema / properties / offset / type
      Added value: +"integer"
    • removedInput schema / properties / sort / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "enum": [
      -        "brand",
      -        "-brand",
      -        "model",
      -        "-model",
      -        "device_count",
      -        "-device_count",
      -        "avg_battery_temperature_celsius",
      -        "-avg_battery_temperature_celsius",
      -        "min_android_api_level",
      -        "-min_android_api_level",
      -        "max_android_api_level",
      -        "-max_android_api_level"
      -      ],
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "enum": [
      -      "name",
      -      "device_count"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / sort / default
      Removed value: -null
    • changedInput schema / properties / sort / description
      Previous value: -"Sort keys, applied in order: a field name sorts ascending, a '-' prefix descending (e.g. ['-device_count'] = most devices first). Missing values go last. Sorting runs before `limit` / `offset`, so ['-device_count'] with limit=10 is the top 10. Defaults to ['brand', 'model'] (alphabetical); brand then model also break ties. The single strings 'name' (alphabetical) and 'device_count' (most devices first) are still accepted."New value: +"Sort keys, applied in list order: each next key only orders entries the keys before it tie, e.g. [{\"by\": \"device_count\"}] = most devices first, [{\"by\": \"temperature_c\", \"order\": \"desc\"}, {\"by\": \"device_count\"}]. Missing values go last. Sorting runs before `limit` / `offset`, so [{\"by\": \"device_count\"}] with limit=10 is the 10 with the most devices. Omit for alphabetical order; brand then model always breaks the ties left."
    • addedInput schema / properties / sort / items
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "by": {
      +      "description": "Value to sort on.",
      +      "enum": [
      +        "brand",
      +        "model",
      +        "device_count",
      +        "temperature_c",
      +        "min_android_api_level",
      +        "max_android_api_level"
      +      ],
      +      "type": "string"
      +    },
      +    "order": {
      +      "description": "'asc' (smallest / A first) or 'desc' (largest / Z first). When omitted: 'desc' for counts and other numbers, 'asc' for names.",
      +      "enum": [
      +        "asc",
      +        "desc"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "by"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / sort / type
      Added value: +"array"
    • removedOutput schema / properties / result / items / properties / avg_battery_temperature_celsius
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Average battery temperature in Celsius, weighted across all snapshots of all devices of this model. Null when no temperature samples were recorded."
      -}
    • addedOutput schema / properties / result / items / properties / temperature_c
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Average battery temperature in Celsius, weighted across all snapshots of all devices of this model. Null when no temperature samples were recorded."
      +}
  4. Changed5 schema fields changed
    • addedInput schema / properties / sort / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "enum": [
      +        "brand",
      +        "-brand",
      +        "model",
      +        "-model",
      +        "device_count",
      +        "-device_count",
      +        "avg_battery_temperature_celsius",
      +        "-avg_battery_temperature_celsius",
      +        "min_android_api_level",
      +        "-min_android_api_level",
      +        "max_android_api_level",
      +        "-max_android_api_level"
      +      ],
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "enum": [
      +      "name",
      +      "device_count"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / sort / default
      Previous value: -"name"New value: +null
    • changedInput schema / properties / sort / description
      Previous value: -"Sort order of the returned models: 'name' (default, alphabetical by brand then model) or 'device_count' (most recorded devices first). Combine sort='device_count' with `limit` to answer 'most popular models' questions in one small call."New value: +"Sort keys, applied in order: a field name sorts ascending, a '-' prefix descending (e.g. ['-device_count'] = most devices first). Missing values go last. Sorting runs before `limit` / `offset`, so ['-device_count'] with limit=10 is the top 10. Defaults to ['brand', 'model'] (alphabetical); brand then model also break ties. The single strings 'name' (alphabetical) and 'device_count' (most devices first) are still accepted."
    • removedInput schema / properties / sort / pattern
      Removed value: -"^(name|device_count)$"
    • removedInput schema / properties / sort / type
      Removed value: -"string"
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/closed-world, but the description adds substantial behavior lost elsewhere: the 50-item default, offset paging, the fact that sorting happens before limit/offset, that missing values sort last, and that entries are grouped by resolved street name covering multiple raw Build.MODEL identifiers. It further discloses when `raw_model_code` and `url` are null, which is exactly the kind of edge-case behavior an agent needs.

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 purpose, then a bulleted block for the URL-building fields, then filtering/sorting/fields guidance. Dense but every part is functional; there is mild redundancy where the 50-result default and sort-before-limit rule repeat the schema text.

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 values need no prose, and the description instead spends its words on the non-obvious semantics: street-name grouping versus raw model codes and the conditions producing null url/raw_model_code. For an 8-parameter, fully optional-argument list tool, an agent has everything needed to call it correctly.

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 still adds meaning through concrete usage patterns (sort=[{"by": "model"}], fields=['brand','model','device_count','url']) and by framing min/max_device_count in terms of 'how many devices were recorded'. It repeats a few defaults already in the schema, which keeps it from a 5.

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 ('List the phone models BatterySnap has battery statistics for'), plus the scope (one brand, several brands, or all) and the default ordering and returned fields. It also implicitly separates itself from ranking tools by naming a different one for rankings.

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?

Gives explicit routing: 'For battery life or charging rankings, use `top_models` instead.' It also explains how to filter with min/max_device_count, how to page with limit/offset, and how to trim the response with `fields`, including a typical fields example.

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