Skip to main content
Glama

Get Device Info

device_info
Read-onlyIdempotent

Retrieve a connected Android device’s model, OS version, screen density, and related details by serial to verify the test target before debugging or deployment.

Instructions

Get detailed information about a connected Android device including model, OS version, screen density, and more

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
deviceIdNoTarget device serial

Output Schema

NameRequiredDescriptionDefault
modelYesDevice model name
cpuAbiYesPrimary CPU ABI
buildIdYesBuild display ID
hardwareYesHardware name
heapSizeYesDalvik VM heap size
sdkLevelYesAndroid API level
buildTypeYesBuild type, e.g. 'user' or 'userdebug'
batteryLevelYesBattery level percentage
manufacturerYesDevice manufacturer
screenDensityYesScreen density (dpi)
androidVersionYesAndroid OS version
screenResolutionYesPhysical screen resolution

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is fully covered and the description only needs to add operational context. It does add value by naming the returned attributes, but it is silent on the notable optional-parameter case: deviceId is not required, yet the description never says whether it falls back to a single connected device or errors when several are attached.

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?

A single front-loaded sentence that leads with the verb and resource, with zero preamble. The trailing 'and more' is slightly vague and could have been replaced with a concrete statement about default-device behavior, but overall it is efficient.

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?

Because an output schema exists, the description need not enumerate return fields, and rich annotations carry the safety semantics. The only meaningful gap is the undefined behavior for the optional deviceId parameter, which is a smaller omission than it would be for a complex or mutating tool.

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 parameter (deviceId) is documented in the schema as 'Target device serial', so the baseline of 3 applies. The description adds no meaning beyond the schema — it never mentions deviceId, its format, or the default behavior when it is omitted.

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 clear verb-resource pair ('Get detailed information about a connected Android device') and enumerates representative fields (model, OS version, screen density). It is specific enough to be distinguishable from mutation siblings like app_clear_data or apk_install, though it never explicitly contrasts with the closest read sibling, device_list.

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 it should call this when it needs device attributes. There is no explicit 'use this instead of device_list' routing, no statement of prerequisites (e.g., device must be connected/adb-authorized), and no mention of what happens with multiple attached devices.

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