Skip to main content
Glama

BatterySnap

Top devices by uptime

top_devices_by_uptime
Read-onlyIdempotent

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.

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

Input Schema

NameRequiredDescriptionDefault
brandNoOptional lowercase brand filter. When omitted, devices from any brand are ranked together.
limitNoNumber of devices to return, 1..100.
modelNoOptional model filter — matches resolved street name or raw Build.MODEL, case-insensitive. When omitted, no model filter applies.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 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 / 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. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and closed-world scope, so the safety profile is covered. The description adds real behavioral context beyond that: the ranking metric is a lifetime maximum between reboots, filters are optional and non-exclusive, and each row carries a device_uid plus a URL to an external battery-history page.

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?

Three sentences, front-loaded with the metric definition, then filters, then the use case and output pointers. The 'champions of staying powered on for weeks/months' phrasing is colorful but does convey the magnitude of the metric, so it earns most of its space.

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?

With an output schema present and annotations covering safety, the description need not enumerate return fields, and it correctly focuses on the metric semantics and the device_uid chaining path. It is complete enough to call correctly, with only the absence of an explicit sibling comparison as a minor 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%, so brand, model and limit are already fully documented, including the 'ranked together when omitted' behavior. The description only restates that brand and model are optional filters, adding no syntax or matching detail beyond the schema — baseline 3 is appropriate.

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 ('Return the devices with the longest single uptime ever recorded between reboots') and pins the exact metric (max_elapsed_time). The phrase 'ever recorded between reboots' implicitly separates it from a live-uptime sibling, so an agent can pick the right tool 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 a clear use case ('find which physical phones ... are champions of staying powered on') and a downstream chaining hint (feed device_uid into device_summary). It stops short of naming an alternative tool or stating when not to use it, so it is clear context without exclusions.

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