Rank devices by metric
top_devicesRank 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. Pair the metric with the right order:
hottest = temperature_c + desc, fastest AC charging = ac_charge_hours + asc,
best battery life = discharge_hours + desc. To compare phones the user
names, call model_summary for each of them instead.
Ranking is over each device's own lifetime aggregate.
There is no region filter here: regional questions go to the aggregates
(region_summary, top_models, fleet_summary).
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": {
"metric": "<metric>"
},
"name": "top_devices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brand | No | Optional lowercase brand filter. When omitted, devices from any brand are ranked together. | |
| limit | No | Number of devices to return, 1..100. | |
| model | No | Optional model filter — matches resolved street name or raw Build.MODEL, case-insensitive. When omitted, no model filter applies. | |
| order | No | '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. | desc |
| metric | Yes | 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 | No | 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |