Skip to main content
Glama

device_info

Read-only

Retrieves detailed Android device information such as model, Android version, screen size, SDK level, and battery level. Use it to identify and inspect a connected device before issuing commands.

Instructions

Get detailed info about a device: model, Android version, screen size, SDK level, battery level

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

Input Schema

NameRequiredDescriptionDefault
serialNoDevice serial number. If omitted, uses the only connected device.

Output Schema

NameRequiredDescriptionDefault
brandYesDevice brand
modelYesDevice model
serialYesResolved device serial
sdkLevelYesAndroid SDK API level
screenWidthYesScreen width in pixels
batteryLevelYesBattery level percentage
manufacturerYesDevice manufacturer
screenHeightYesScreen height in pixels
androidVersionYesAndroid release version

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv3.0.1
    • removedOutput schema / properties / androidVersion / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / androidVersion / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / brand / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / brand / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / manufacturer / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / manufacturer / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / model / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / model / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds the set of fields returned, which is mild extra context, but since an output schema exists that field list is largely redundant and no further behavior (e.g. what happens with multiple devices connected) is disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with the verb and resource first and the returned fields following; no filler or redundancy.

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?

For a simple read-only tool with one optional parameter, an output schema, and read-only annotations, the description covers what is needed to call it correctly. The only minor gap is the absence of guidance on multi-device scenarios, which the schema partially handles.

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% and the single optional 'serial' parameter is fully documented in the schema, including the default-to-only-connected-device behavior. The description adds nothing about the parameter, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Get detailed info') and resource ('a device') and enumerates the returned fields (model, Android version, screen size, SDK level, battery level), so the agent knows exactly what it retrieves. It does not explicitly distinguish itself from siblings like device_list or version, which keeps it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer this is the tool for inspecting a single device's properties, but there is no explicit when-to-use versus device_list/version guidance and no stated prerequisites. The only conditional behavior (falling back to the sole connected device) lives in the schema, not the description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.