Skip to main content
Glama

BatterySnap

List brands

brands
Read-onlyIdempotent

List the phone brands BatterySnap has battery statistics for, most devices first, with each brand's number of models and of devices (50 brands unless limit says otherwise; offset pages).

Each entry also gives the largest single-model device count within the brand (max_devices_per_model); model_count counts the models with a known marketing name. 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 sort to order otherwise, e.g. sort=[{"by": "brand"}] for A to Z. Pass fields to keep only specific attributes in each entry. Prefer search when resolving one brand by name.

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

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": "model_count", "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 always breaks the ties left.
limitNoReturn at most this many entries (50 when omitted). Page with `offset`, or pass a larger limit for more.
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_model_countNoDrop brands with more than this many distinct models. Omit for no upper bound.
min_model_countNoDrop brands with fewer than this many distinct models. Defaults to 0 (keep all).
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. Changed2 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Return at most this many entries. Omit for no cap — but the unbounded list can be very large, so prefer a limit."New value: +"Return at most this many entries (50 when omitted). Page with `offset`, or pass a larger limit for more."
    • 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\": \"model_count\", \"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 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\": \"model_count\", \"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 always breaks the ties left."
  2. Changed34 schema fields changed
    • 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_count",
      +    "device_count",
      +    "max_devices_per_model",
      +    "url"
      +  ],
      +  "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 / max_model_count / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / max_model_count / default
      Removed value: -null
    • addedInput schema / properties / max_model_count / minimum
      Added value: +0
    • addedInput schema / properties / max_model_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 / min_model_count / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / min_model_count / default
      Removed value: -null
    • addedInput schema / properties / min_model_count / minimum
      Added value: +0
    • addedInput schema / properties / min_model_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_count",
      -        "-model_count",
      -        "device_count",
      -        "-device_count",
      -        "max_devices_per_model",
      -        "-max_devices_per_model"
      -      ],
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "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'] (alphabetical); brand also breaks ties."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\": \"model_count\", \"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 always breaks the ties left."
    • addedInput schema / properties / sort / items
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "by": {
      +      "description": "Value to sort on.",
      +      "enum": [
      +        "brand",
      +        "model_count",
      +        "device_count",
      +        "max_devices_per_model"
      +      ],
      +      "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"
  3. Changed1 schema field changed
    • addedInput schema / properties / sort
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "enum": [
      +          "brand",
      +          "-brand",
      +          "model_count",
      +          "-model_count",
      +          "device_count",
      +          "-device_count",
      +          "max_devices_per_model",
      +          "-max_devices_per_model"
      +        ],
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "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'] (alphabetical); brand also breaks ties."
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, closed-world), yet the description still adds non-obvious behavior: default page size of 50, default ordering of most-devices-first, and the tie-breaking rule. It also clarifies that `model_count` only counts models with a known marketing name, which is a real semantic nuance absent from the schema. Minor duplication of schema-stated defaults keeps it from a 5.

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 scope, ordering, and entry contents, then moves through filters, sorting, projection, and the alternative in a logical sequence. A few clauses restate schema defaults (50 brands, `offset` pages) and could be trimmed without losing meaning.

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 not be enumerated, and annotations carry the safety profile; the description fills the remaining gaps by explaining entry contents, defaults, sort-before-limit interaction, and the sibling alternative. An agent can call this correctly without opening the schema.

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 the schema already documents all eight parameters including defaults and bounds. The description adds only a concrete `sort` example (sort=[{"by": "brand"}] for A to Z) and a restatement of the filter purpose, which is marginal value over structured fields rather than new semantics.

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?

Opens with a specific verb and resource ("List the phone brands BatterySnap has battery statistics for") and states the default ordering, which immediately distinguishes it from siblings like `search` and `models`. The closing line naming `search` for single-brand resolution makes the boundary explicit.

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 when-to-use routing ("Prefer `search` when resolving one brand by name") and explains each operating mode: filter by counts, reorder with `sort`, shrink entries with `fields`, page with `limit`/`offset`. Nothing about selecting this tool is left to inference.

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