Real-world Android battery stats from BatterySnap users: device, model and fleet rankings.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Return the mobile devices brands for which we have battery statistics, along with the number of distinct models, the number of devices recorded per brand, and the largest single-model device count within the brand (`max_devices_per_model`). Each entry also includes a `url` to the public BatterySnap web page for the brand (e.g. https://www.battery-snap.com/brands/samsung). Pass `min_device_count` / `max_device_count` and `min_model_count` / `max_model_count` to filter brands by recorded-device and distinct-model counts. Pass `fields` to keep only specific attributes in each entry. The full list is long: pass `limit` (and `offset` to page) unless you really need every brand, and prefer `search` when resolving one brand by name.
Return at most this many entries. Omit for no cap — but the unbounded list can be very large, so prefer a limit.
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.
Skip this many entries before returning results — use with `limit` to page through a long list. Defaults to 0.
Drop brands with more than this many distinct models. Omit for no upper bound.
Drop brands with fewer than this many distinct models. Defaults to 0 (keep all).
Drop entries with more than this many recorded devices. Use to skip very common entries. Omit for no upper bound.
Drop entries with fewer than this many recorded devices. Defaults to 1 (keep all).
Return the mobile devices brands for which we have battery statistics, along with the number of distinct models, the number of devices recorded per brand, and the largest single-model device count within the brand (`max_devices_per_model`). Each entry also includes a `url` to the public BatterySnap web page for the brand (e.g. https://www.battery-snap.com/brands/samsung). Pass `min_device_count` / `max_device_count` and `min_model_count` / `max_model_count` to filter brands by recorded-device and distinct-model counts. Pass `fields` to keep only specific attributes in each entry. The full list is long: pass `limit` (and `offset` to page) unless you really need every brand, and prefer `search` when resolving one brand by name.
| Argument | Type | Description |
|---|---|---|
| limit | any | Return at most this many entries. Omit for no cap — but the unbounded list can be very large, so prefer a limit. |
| fields | any | 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. |
| offset | any | Skip this many entries before returning results — use with `limit` to page through a long list. Defaults to 0. |
| max_model_count | any | Drop brands with more than this many distinct models. Omit for no upper bound. |
| min_model_count | any | Drop brands with fewer than this many distinct models. Defaults to 0 (keep all). |
| max_device_count | any | Drop entries with more than this many recorded devices. Use to skip very common entries. Omit for no upper bound. |
| min_device_count | any | Drop entries with fewer than this many recorded devices. Defaults to 1 (keep all). |
{
"type": "object",
"properties": {
"limit": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"default": null,
"description": "Return at most this many entries. Omit for no cap — but the unbounded list can be very large, so prefer a limit."
},
"fields": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"default": null,
"description": "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."
},
"offset": {
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
}
],
"default": null,
"description": "Skip this many entries before returning results — use with `limit` to page through a long list. Defaults to 0."
},
"max_model_count": {
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
}
],
"default": null,
"description": "Drop brands with more than this many distinct models. Omit for no upper bound."
},
"min_model_count": {
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
}
],
"default": null,
"description": "Drop brands with fewer than this many distinct models. Defaults to 0 (keep all)."
},
"max_device_count": {
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
}
],
"default": null,
"description": "Drop entries with more than this many recorded devices. Use to skip very common entries. Omit for no upper bound."
},
"min_device_count": {
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
}
],
"default": null,
"description": "Drop entries with fewer than this many recorded devices. Defaults to 1 (keep all)."
}
},
"additionalProperties": false
}Answer 'is MY phone normal?' — rank one device's metric against other devices of the same model AND against the whole fleet, in one call. Returns the device's value, its 1-based rank, its percentile, and the cohort median / mean / min / max for both cohorts. Prefer this over fetching `device_summary` + `model_summary` and comparing by hand: it is a single call and gives the percentile directly. The model cohort is the meaningful one for 'is this device degraded'; the fleet cohort puts the model itself in context.
| Argument | Type | Description |
|---|---|---|
| metric | string | Which battery metric to rank on. One of: 'temperature_c' (mean battery temperature, C), 'max_temperature_c' / 'min_temperature_c' (hottest / coldest ever seen, C), 'battery_level_pct' (mean charge level, 0-100), 'discharge_hours' (hours to drain a full 100% - HIGHER means longer battery life), 'ac_charge_hours' / 'usb_charge_hours' / 'wireless_charge_hours' (hours to charge a full 100% on that source - LOWER means faster charging), 'awake_ratio' (fraction of time awake / screen-on, 0..1), 'snapshot_count' (how much data the device contributed), 'uptime_hours' (longest single uptime between reboots). |
| device_uid* | string | Stable device UUID returned by `devices`, `top_devices` or the share flow. |
{
"type": "object",
"required": [
"device_uid"
],
"properties": {
"metric": {
"type": "string",
"default": "discharge_hours",
"description": "Which battery metric to rank on. One of: 'temperature_c' (mean battery temperature, C), 'max_temperature_c' / 'min_temperature_c' (hottest / coldest ever seen, C), 'battery_level_pct' (mean charge level, 0-100), 'discharge_hours' (hours to drain a full 100% - HIGHER means longer battery life), 'ac_charge_hours' / 'usb_charge_hours' / 'wireless_charge_hours' (hours to charge a full 100% on that source - LOWER means faster charging), 'awake_ratio' (fraction of time awake / screen-on, 0..1), 'snapshot_count' (how much data the device contributed), 'uptime_hours' (longest single uptime between reboots)."
},
"device_uid": {
"type": "string",
"description": "Stable device UUID returned by `devices`, `top_devices` or the share flow."
}
},
"additionalProperties": false
}Return aggregated battery metrics for ONE specific device: average / min / max temperature, average battery level, mean charge time per power source (AC, USB, wireless) and mean discharge time over a recent (~2 weeks) and a long (~2 months) window, plus awake ratio and basic device info. Also includes `url`: the public BatterySnap web page for this device's interactive battery history (https://www.battery-snap.com/device_history?device=<uid>). All values are pre-computed from the device's full snapshot history — no raw timeseries is returned.
| Argument | Type | Description |
|---|---|---|
| device_uid* | string | Stable device UUID returned by the `devices` tool. |
{
"type": "object",
"required": [
"device_uid"
],
"properties": {
"device_uid": {
"type": "string",
"description": "Stable device UUID returned by the `devices` tool."
}
},
"additionalProperties": false
}Return the list of individual physical devices matching one or more (brand, model) pairs for which we have battery statistics. Each entry in the returned list describes ONE specific device (identified by its own `device_uid`) and the metrics on that entry are aggregates computed only from THAT device's own snapshot history — they are not aggregated across devices. Two devices of the same brand and model will appear as two separate entries with their own independent metrics. Per-device fields include: brand, resolved model (street name), raw Android model, snapshot count, activity window (first / last seen), average battery level, average / min / max battery temperature in Celsius, awake-ratio, discharge speed and AC / USB / wireless charge speed (hours per full 100% swing), Android SDK level, IANA time zone, and a `url` pointing at the public BatterySnap web page for the device's interactive battery history (https://www.battery-snap.com/device_history?device=<uid>). Each pair's model is matched case-insensitively against either the resolved street name (e.g. 'Galaxy S23') or the raw Android model identifier (e.g. 'SM-S911B'). Pass `fields` to keep only specific attributes per device and avoid bloated responses.
| Argument | Type | Description |
|---|---|---|
| pairs* | array | One or more {brand, model} pairs to look up. Each pair fetches devices matching that brand and model. |
| fields | any | 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. |
{
"type": "object",
"required": [
"pairs"
],
"properties": {
"pairs": {
"type": "array",
"items": {
"type": "object",
"required": [
"brand",
"model"
],
"properties": {
"brand": {
"type": "string",
"description": "Lowercase Android device brand identifier (e.g. 'samsung', 'xiaomi'), matched case-insensitively against the device's brand."
},
"model": {
"type": "string",
"description": "Model name matched case-insensitively against either the resolved street name (e.g. 'Galaxy S23') or the raw Android model identifier (e.g. 'SM-S911B')."
}
}
},
"minItems": 1,
"description": "One or more {brand, model} pairs to look up. Each pair fetches devices matching that brand and model."
},
"fields": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"default": null,
"description": "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."
}
},
"additionalProperties": false
}Aggregate battery metrics across the entire fleet, or across one brand when `brand` is provided. 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.
| Argument | Type | Description |
|---|---|---|
| brand | any | Optional lowercase brand identifier. If set, aggregates across that brand only; otherwise across the entire fleet. |
{
"type": "object",
"properties": {
"brand": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional lowercase brand identifier. If set, aggregates across that brand only; otherwise across the entire fleet."
}
},
"additionalProperties": false
}Live fleet-wide counters: total devices, models, snapshots, sessions, the running snapshot-ingest rate (snapshots/sec) and the timing of the last insert batch. Use this for one-shot 'how big is the dataset / how fast is it growing' questions. Unlike `fleet_summary`, no per-device aggregation is involved — these are raw running counts from the database.
No arguments.
{
"type": "object",
"properties": {},
"additionalProperties": false
}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 (smallest 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/<brand>/models/<raw_model_code>); null when `raw_model_code` is null.
| Argument | Type | Description |
|---|---|---|
| brand* | string | Lowercase Android brand identifier (e.g. 'samsung'). |
| model* | string | Model name, matched against resolved street name (e.g. 'Galaxy S23') or raw Build.MODEL (e.g. 'SM-S911B'). |
{
"type": "object",
"required": [
"brand",
"model"
],
"properties": {
"brand": {
"type": "string",
"description": "Lowercase Android brand identifier (e.g. 'samsung')."
},
"model": {
"type": "string",
"description": "Model name, matched against resolved street name (e.g. 'Galaxy S23') or raw Build.MODEL (e.g. 'SM-S911B')."
}
},
"additionalProperties": false
}Return the mobile devices models of the given brands for which we have battery statistics, along with the brand each model belongs to, the number of devices recorded, the average battery temperature in Celsius, and the min/max Android SDK level per model. 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 lexicographically smallest one among devices grouped under this street name), 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; `raw_model_code` is null. The page lists all devices reporting that exact raw model. Pass `min_device_count` / `max_device_count` to filter models by how many devices were recorded. For 'which models have the most devices' questions, pass sort='device_count' with a small `limit` (and typically fields=['brand', 'model', 'device_count', 'url']) instead of fetching and sorting the full list. Pass `fields` to keep only specific attributes in each entry. Omit `brands` (or pass an empty list) to return models across every brand.
| Argument | Type | Description |
|---|---|---|
| sort | string | 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. |
| limit | any | Return at most this many models (applied after filtering and sorting). Omit for no cap. |
| brands | any |
Resolve free-form user text into the canonical brand / model identifiers the other tools expect. Meant for phones named in free text: the other tools match brands and models exactly, so a guessed spelling returns an empty list. Matching is substring-based and case-insensitive over brand, resolved model name and raw Build.MODEL, ranked by exact match then popularity.
| Argument | Type | Description |
|---|---|---|
| limit | integer | Maximum brand hits and model hits to return (each list is capped separately). |
| query* | string | Free text: a brand ('samsug'), a model name ('pixel 8'), a raw Build.MODEL code ('SM-S911B'), or both ('samsung galaxy s23'). |
{
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "Maximum brand hits and model hits to return (each list is capped separately)."
},
"query": {
"type": "string",
"minLength": 1,
"description": "Free text: a brand ('samsug'), a model name ('pixel 8'), a raw Build.MODEL code ('SM-S911B'), or both ('samsung galaxy s23')."
}
},
"additionalProperties": false
}Rank INDIVIDUAL devices by any battery metric — the general-purpose leaderboard. Use it for 'which phones run hottest / last longest / charge fastest', optionally narrowed to one brand and/or model. Returns at most `limit` rows, so it answers superlative questions in a single small call instead of enumerating the fleet. Ranking is over each device's own lifetime aggregate. Pair the metric with the right `order`: e.g. hottest = temperature_c + desc, fastest AC charging = ac_charge_hours + asc, best battery life = discharge_hours + desc.
| Argument | Type | Description |
|---|---|---|
| brand | any | Optional lowercase brand filter. When omitted, devices from any brand are ranked together. |
| limit | integer | Number of devices to return, 1..100. |
| model | any | Optional model filter — matches resolved street name or raw Build.MODEL, case-insensitive. When omitted, no model filter applies. |
| order | string | 'desc' (default) ranks the highest values first, 'asc' the lowest. Pick the direction that matches the question: fastest charging is ac_charge_hours + asc; longest battery life is discharge_hours + desc. |
| metric* | string | Which battery metric to rank on. One of: 'temperature_c' (mean battery temperature, C), 'max_temperature_c' / 'min_temperature_c' (hottest / coldest ever seen, C), 'battery_level_pct' (mean charge level, 0-100), 'discharge_hours' (hours to drain a full 100% - HIGHER means longer battery life), 'ac_charge_hours' / 'usb_charge_hours' / 'wireless_charge_hours' (hours to charge a full 100% on that source - LOWER means faster charging), 'awake_ratio' (fraction of time awake / screen-on, 0..1), 'snapshot_count' (how much data the device contributed), 'uptime_hours' (longest single uptime between reboots). |
Same as `top_devices_by_uptime`, but restricted to devices that have not yet rebooted past their recorded maximum — meaning the uptime is currently still climbing. These are the devices that are 'live' champions right now, as opposed to historical record-holders. Each entry includes a `url` pointing at the device's interactive battery history page on https://www.battery-snap.com.
| Argument | Type | Description |
|---|---|---|
| brand | any | Optional lowercase brand filter. When omitted, devices from any brand are ranked together. |
| limit | integer | Number of devices to return, 1..100. |
| model | any | Optional model filter — matches resolved street name or raw Build.MODEL, case-insensitive. When omitted, no model filter applies. |
{
"type": "object",
"properties": {
"brand": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional lowercase brand filter. When omitted, devices from any brand are ranked together."
},
"limit": {
"type": "integer",
"default": 10,
"maximum": 100,
"minimum": 1,
"description": "Number of devices to return, 1..100."
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional model filter — matches resolved street name or raw Build.MODEL, case-insensitive. When omitted, no model filter applies."
}
},
"additionalProperties": false
}Return the devices with the longest single uptime ever recorded between reboots (max_elapsed_time). Optionally filter by brand and/or model. Useful to find which physical phones in the fleet are champions of staying powered on for weeks/months at a time. Each entry includes a `device_uid` you can feed into `device_summary` for deeper analysis, and a `url` pointing at the device's interactive battery history page on https://www.battery-snap.com.
| Argument | Type | Description |
|---|---|---|
| brand | any | Optional lowercase brand filter. When omitted, devices from any brand are ranked together. |
| limit | integer | Number of devices to return, 1..100. |
| model | any | Optional model filter — matches resolved street name or raw Build.MODEL, case-insensitive. When omitted, no model filter applies. |
{
"type": "object",
"properties": {
"brand": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional lowercase brand filter. When omitted, devices from any brand are ranked together."
},
"limit": {
"type": "integer",
"default": 10,
"maximum": 100,
"minimum": 1,
"description": "Number of devices to return, 1..100."
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional model filter — matches resolved street name or raw Build.MODEL, case-insensitive. When omitted, no model filter applies."
}
},
"additionalProperties": false
}Rank device MODELS by any battery metric, aggregating across every device of that model. This is the tool for 'which phone model has the best battery life', 'which models charge fastest', 'which run hottest' — questions that would otherwise need one `model_summary` call per model. Ordering is by the per-model MEDIAN of the metric (outlier-resistant); the mean is returned alongside. Use `brand` to rank within one manufacturer and `min_devices` to require a minimum sample size.
| Argument | Type | Description |
|---|---|---|
| brand | any | Optional lowercase brand filter. When omitted, devices from any brand are ranked together. |
| limit | integer | Number of devices to return, 1..100. |
| order | string | 'desc' (default) ranks the highest values first, 'asc' the lowest. Pick the direction that matches the question: fastest charging is ac_charge_hours + asc; longest battery life is discharge_hours + desc. |
| metric* | string | Which battery metric to rank on. One of: 'temperature_c' (mean battery temperature, C), 'max_temperature_c' / 'min_temperature_c' (hottest / coldest ever seen, C), 'battery_level_pct' (mean charge level, 0-100), 'discharge_hours' (hours to drain a full 100% - HIGHER means longer battery life), 'ac_charge_hours' / 'usb_charge_hours' / 'wireless_charge_hours' (hours to charge a full 100% on that source - LOWER means faster charging), 'awake_ratio' (fraction of time awake / screen-on, 0..1), 'snapshot_count' (how much data the device contributed), 'uptime_hours' (longest single uptime between reboots). |
| 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. |
| fields | any | 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. |
| offset | any | Skip this many entries before returning results — use with `limit` to page through a long list. Defaults to 0. |
| max_device_count | any | Drop entries with more than this many recorded devices. Use to skip very common entries. Omit for no upper bound. |
| min_device_count | any | Drop entries with fewer than this many recorded devices. Defaults to 1 (keep all). |
{
"type": "object",
"properties": {
"sort": {
"type": "string",
"default": "name",
"pattern": "^(name|device_count)$",
"description": "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."
},
"limit": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"default": null,
"description": "Return at most this many models (applied after filtering and sorting). Omit for no cap."
},
"brands": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"default": null,
"description": "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."
},
"fields": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"default": null,
"description": "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."
},
"offset": {
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
}
],
"default": null,
"description": "Skip this many entries before returning results — use with `limit` to page through a long list. Defaults to 0."
},
"max_device_count": {
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
}
],
"default": null,
"description": "Drop entries with more than this many recorded devices. Use to skip very common entries. Omit for no upper bound."
},
"min_device_count": {
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
}
],
"default": null,
"description": "Drop entries with fewer than this many recorded devices. Defaults to 1 (keep all)."
}
},
"additionalProperties": false
}| min_snapshots | integer | Ignore devices with fewer snapshots than this. Defaults to 100, which filters out barely-sampled devices whose averages are meaningless. Lower it only when a query returns too few rows. |
{
"type": "object",
"required": [
"metric"
],
"properties": {
"brand": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional lowercase brand filter. When omitted, devices from any brand are ranked together."
},
"limit": {
"type": "integer",
"default": 10,
"maximum": 100,
"minimum": 1,
"description": "Number of devices to return, 1..100."
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional model filter — matches resolved street name or raw Build.MODEL, case-insensitive. When omitted, no model filter applies."
},
"order": {
"type": "string",
"default": "desc",
"pattern": "^(asc|desc)$",
"description": "'desc' (default) ranks the highest values first, 'asc' the lowest. Pick the direction that matches the question: fastest charging is ac_charge_hours + asc; longest battery life is discharge_hours + desc."
},
"metric": {
"type": "string",
"description": "Which battery metric to rank on. One of: 'temperature_c' (mean battery temperature, C), 'max_temperature_c' / 'min_temperature_c' (hottest / coldest ever seen, C), 'battery_level_pct' (mean charge level, 0-100), 'discharge_hours' (hours to drain a full 100% - HIGHER means longer battery life), 'ac_charge_hours' / 'usb_charge_hours' / 'wireless_charge_hours' (hours to charge a full 100% on that source - LOWER means faster charging), 'awake_ratio' (fraction of time awake / screen-on, 0..1), 'snapshot_count' (how much data the device contributed), 'uptime_hours' (longest single uptime between reboots)."
},
"min_snapshots": {
"type": "integer",
"default": 100,
"minimum": 0,
"description": "Ignore devices with fewer snapshots than this. Defaults to 100, which filters out barely-sampled devices whose averages are meaningless. Lower it only when a query returns too few rows."
}
},
"additionalProperties": false
}| min_devices |
| integer |
| Ignore models backed by fewer devices than this. Defaults to 3 so a single outlier phone cannot win a ranking. Raise it for more robust comparisons. |
{
"type": "object",
"required": [
"metric"
],
"properties": {
"brand": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional lowercase brand filter. When omitted, devices from any brand are ranked together."
},
"limit": {
"type": "integer",
"default": 10,
"maximum": 100,
"minimum": 1,
"description": "Number of devices to return, 1..100."
},
"order": {
"type": "string",
"default": "desc",
"pattern": "^(asc|desc)$",
"description": "'desc' (default) ranks the highest values first, 'asc' the lowest. Pick the direction that matches the question: fastest charging is ac_charge_hours + asc; longest battery life is discharge_hours + desc."
},
"metric": {
"type": "string",
"description": "Which battery metric to rank on. One of: 'temperature_c' (mean battery temperature, C), 'max_temperature_c' / 'min_temperature_c' (hottest / coldest ever seen, C), 'battery_level_pct' (mean charge level, 0-100), 'discharge_hours' (hours to drain a full 100% - HIGHER means longer battery life), 'ac_charge_hours' / 'usb_charge_hours' / 'wireless_charge_hours' (hours to charge a full 100% on that source - LOWER means faster charging), 'awake_ratio' (fraction of time awake / screen-on, 0..1), 'snapshot_count' (how much data the device contributed), 'uptime_hours' (longest single uptime between reboots)."
},
"min_devices": {
"type": "integer",
"default": 3,
"minimum": 1,
"description": "Ignore models backed by fewer devices than this. Defaults to 3 so a single outlier phone cannot win a ranking. Raise it for more robust comparisons."
}
},
"additionalProperties": false
}