Skip to main content
Glama

BatterySnap

Device battery summary

device_summary
Read-onlyIdempotent

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=). All values are pre-computed from the device's full snapshot history — no raw timeseries is returned.

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": {
      "device_uid": "<device_uid>"
    },
    "name": "device_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_uidYesStable device UUID returned by the `devices` tool.

Output Schema

NameRequiredDescriptionDefault
urlNoPublic BatterySnap web page showing this device's interactive battery history, e.g. https://www.battery-snap.com/device_history?device=<uid>. Locale-agnostic.
brandNoLowercase Android brand identifier.
modelNoHuman-readable resolved model name (e.g. 'Galaxy S23').
raw_modelNoRaw Build.MODEL string reported by the device.
device_uidNoStable UUID identifying this device.
awake_ratioNoFraction of observed time the device was awake / screen-on (0..1).
observed_daysNoSpan of the recorded history in days, rounded to 30 days.
temperature_cNoMean battery temperature in Celsius across all snapshots.
snapshot_countNoSnapshots recorded for this device.
android_api_levelNoAndroid SDK level (e.g. 34 = Android 14).
battery_level_pctNoMean battery charge level across all snapshots (0-100).
max_temperature_cNoHottest battery temperature in Celsius ever observed. Sustained highs are a battery-health concern.
min_temperature_cNoColdest battery temperature in Celsius ever observed.
ac_charge_hours_longNoHours to charge 100%% on AC over the last ~2 months.
discharge_hours_longNoAverage hours to discharge 100%% over the last ~2 months.
usb_charge_hours_longNoHours to charge 100%% over USB over the last ~2 months.
ac_charge_hours_recentNoHours to charge 100%% on AC (wall charger) over the last ~2 weeks.
discharge_hours_recentNoAverage hours to discharge 100%% over the last ~2 weeks. Null when not enough data.
usb_charge_hours_recentNoHours to charge 100%% over USB (computer) over the last ~2 weeks.
wireless_charge_hours_longNoHours to charge 100%% wirelessly over the last ~2 months.
wireless_charge_hours_recentNoHours to charge 100%% wirelessly over the last ~2 weeks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changed
    • addedOutput schema / properties / ac_charge_hours_long
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Hours to charge 100%% on AC over the last ~2 months."
      +}
    • addedOutput schema / properties / ac_charge_hours_recent
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Hours to charge 100%% on AC (wall charger) over the last ~2 weeks."
      +}
    • removedOutput schema / properties / avg_battery_level_pct
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Mean battery charge level across all snapshots (0-100)."
      -}
    • removedOutput schema / properties / avg_temperature_c
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Mean battery temperature in Celsius across all snapshots."
      -}
    • addedOutput schema / properties / battery_level_pct
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Mean battery charge level across all snapshots (0-100)."
      +}
    • addedOutput schema / properties / discharge_hours_long
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Average hours to discharge 100%% over the last ~2 months."
      +}
    • addedOutput schema / properties / discharge_hours_recent
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Average hours to discharge 100%% over the last ~2 weeks. Null when not enough data."
      +}
    • removedOutput schema / properties / mean_ac_charge_hours_long
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Hours to charge 100%% on AC over the last ~2 months."
      -}
    • removedOutput schema / properties / mean_ac_charge_hours_recent
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Hours to charge 100%% on AC (wall charger) over the last ~2 weeks."
      -}
    • removedOutput schema / properties / mean_discharge_hours_long
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Average hours to discharge 100%% over the last ~2 months."
      -}
    • removedOutput schema / properties / mean_discharge_hours_recent
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Average hours to discharge 100%% over the last ~2 weeks. Null when not enough data."
      -}
    • removedOutput schema / properties / mean_usb_charge_hours_long
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Hours to charge 100%% over USB over the last ~2 months."
      -}
    • removedOutput schema / properties / mean_usb_charge_hours_recent
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Hours to charge 100%% over USB (computer) over the last ~2 weeks."
      -}
    • removedOutput schema / properties / mean_wireless_charge_hours_long
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Hours to charge 100%% wirelessly over the last ~2 months."
      -}
    • removedOutput schema / properties / mean_wireless_charge_hours_recent
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Hours to charge 100%% wirelessly over the last ~2 weeks."
      -}
    • addedOutput schema / properties / temperature_c
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Mean battery temperature in Celsius across all snapshots."
      +}
    • addedOutput schema / properties / usb_charge_hours_long
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Hours to charge 100%% over USB over the last ~2 months."
      +}
    • addedOutput schema / properties / usb_charge_hours_recent
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Hours to charge 100%% over USB (computer) over the last ~2 weeks."
      +}
    • addedOutput schema / properties / wireless_charge_hours_long
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Hours to charge 100%% wirelessly over the last ~2 months."
      +}
    • addedOutput schema / properties / wireless_charge_hours_recent
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Hours to charge 100%% wirelessly over the last ~2 weeks."
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / snapshot_count / description
      Previous value: -"Approximate snapshots recorded for this device (one significant digit)."New value: +"Snapshots recorded for this device."
  3. Changed4 schema fields changed
    • removedOutput schema / properties / first_seen
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "ISO 8601 timestamp of the earliest snapshot."
      -}
    • removedOutput schema / properties / last_seen
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "ISO 8601 timestamp of the most recent snapshot."
      -}
    • changedOutput schema / properties / observed_days / description
      Previous value: -"Span in days between first_seen and last_seen."New value: +"Span of the recorded history in days, rounded to 30 days."
    • changedOutput schema / properties / snapshot_count / description
      Previous value: -"Total snapshots recorded for this device."New value: +"Approximate snapshots recorded for this device (one significant digit)."
  4. Changed3 schema fields changed
    • removedOutput schema / properties / continent
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Continent derived from the device's time zone: one of 'Africa', 'Antarctica', 'Asia', 'Europe', 'North America', 'Oceania', 'South America'. Null when unknown."
      -}
    • removedOutput schema / properties / country
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "ISO 3166 alpha-2 country code derived from the device's time zone (e.g. 'FR' for Europe/Paris). It is where the phone's clock is set, not a GPS / IP location. Null when the zone names no place (UTC, GMT) or is unknown."
      -}
    • removedOutput schema / properties / time_zone
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "IANA time zone reported by the device."
      -}
  5. Changed2 schema fields changed
    • addedOutput schema / properties / continent
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Continent derived from the device's time zone: one of 'Africa', 'Antarctica', 'Asia', 'Europe', 'North America', 'Oceania', 'South America'. Null when unknown."
      +}
    • addedOutput schema / properties / country
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "ISO 3166 alpha-2 country code derived from the device's time zone (e.g. 'FR' for Europe/Paris). It is where the phone's clock is set, not a GPS / IP location. Null when the zone names no place (UTC, GMT) or is unknown."
      +}
  6. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and closed-world, so the safety profile is covered. The description does add real behavioral value beyond that: it discloses that windows are approximate (~2 weeks, ~2 months), that values are pre-computed from full snapshot history, and that no raw timeseries is returned. That is solid added context, but not enough to justify a 4 given how much the annotations already carry.

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 verb, resource and scope, and every clause carries information (metric list, window definitions, pre-computed caveat, url). It is one dense paragraph, and the enumerated metric list is long but each item is substantive rather than redundant.

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?

For a single-parameter read tool this covers everything an agent needs: what is returned, the two time windows, the pre-computed nature, and the optional public url. An output schema exists, so the extra return-value detail is surplus rather than required, making the description more than complete.

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?

At 100% schema description coverage the single device_uid is already documented in the schema. The description reinforces that it identifies exactly one device but adds no syntax, format or constraint detail beyond that. Baseline 3 applies when the schema does the heavy lifting.

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 aggregated battery metrics") and pins the scope with "ONE specific device" in caps, then enumerates exactly which aggregates come back (avg/min/max temperature, mean charge/discharge time per power source, awake ratio). An agent can distinguish this from fleet_summary/model_summary purely on the single-device scope stated in the text.

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?

The emphasized "ONE specific device" and the exclusive framing ("no raw timeseries is returned") make clear this is the per-device drill-down rather than a fleet aggregate, which is enough context to choose it. It stops short of naming an alternative tool or stating exclusions explicitly, so it lands at 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