Skip to main content
Glama

adb_screencap

Capture an Android device screen to an absolute local PNG path and validate the PNG signature before writing, so you can save verified screenshots for monitoring or debugging.

Instructions

Capture the Android device screen to an absolute local PNG path (screencap -p streamed via exec-out); validates the PNG signature before writing.

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": {
      "serial": "<serial>",
      "outputPath": "<outputPath>"
    },
    "name": "adb_screencap"
  }
}

Input Schema

NameRequiredDescriptionDefault
serialYes
timeoutMsNo
outputPathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the underlying mechanism (screencap -p via exec-out) and that the PNG signature is validated before writing, which usefully implies a failed capture produces no file. It omits overwrite behavior for an existing outputPath, whether the operation requires root/authorization, and how failures are surfaced.

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 dense sentence that front-loads the action and result; the parenthetical on transport is short and relevant, though the compression leaves several caller-relevant facts unstated.

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?

For a 3-parameter, mutation-touching tool with no annotations and no output schema, the definition covers what is captured, where it lands, and that output is validated, but leaves the timeout parameter, overwrite semantics, and return/error shape unexplained.

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 0%, so the description must compensate; it clarifies outputPath as an absolute local PNG path and implies serial identifies the Android device, but timeoutMs is never mentioned and serial gets no format guidance.

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 concrete verb and resource ('Capture the Android device screen') plus the output artifact ('absolute local PNG path'), which separates it from generic siblings like adb_exec and from the RDP counterpart rdp_screenshot by naming the Android platform.

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?

Intended use (grabbing a screenshot of an Android device) is implied by the name and description, but there is no explicit guidance on when to prefer this over adb_exec with a raw screencap command, nor any stated preconditions such as an active device connection.

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