Skip to main content
Glama

screen_metrics

Retrieves Android display size and density metrics via ADB so you can inspect a connected device's screen configuration.

Instructions

Return wm size and wm density for the device.

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

Input Schema

NameRequiredDescriptionDefault
serialNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. 'Return' implies a read-only query, but it says nothing about required connection state, what happens when no device is attached or multiple devices exist, or how failures surface — significant gaps for a device-facing tool.

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 short sentence with the key information front-loaded and no wasted wording. It is efficient, though the terseness leaves little room for the context the definition otherwise lacks.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the return value need not be explained, and the description does identify the two metrics returned. However, with zero annotation coverage and an undocumented parameter, the definition is thinner than a device-targeting tool should be.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the single optional `serial` parameter is never mentioned in the description. The phrase 'for the device' vaguely implies device selection, but the agent gets no explanation of what serial means, its default, or what happens 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 names a concrete verb ('Return') and the exact commands being run (`wm size`, `wm density`), so an agent knows precisely what this tool yields. It does not explicitly contrast itself with siblings like device_info or screenshot, but the named commands make its scope unambiguous.

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 by the purpose: call it when you need screen resolution or density. There is no explicit when-to-use statement, no exclusion of overlapping siblings such as device_info, and no note on device targeting or preconditions.

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