Skip to main content
Glama

Capture Screenshot

device_screenshot
Read-onlyIdempotent

Capture a screenshot from a connected Android device and return it as a base64-encoded PNG, optionally saving it to a local path.

Instructions

Capture a screenshot from a connected Android device and return it as a base64-encoded PNG

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_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceIdNoTarget device serial
savePathNoLocal path to save the screenshot file. If omitted, returns base64 data only

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world behavior, so the safety profile is covered. The description adds only the return payload format; it says nothing about what happens if the device is offline, whether savePath overwrites an existing file, or where the file is written on the host.

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 no filler; verb and output format are the first things read. Nothing in it is redundant within the description itself.

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 two-optional-parameter read tool with full schema coverage and rich annotations, this is close to sufficient: purpose and return format are stated. The only real gap is the absence of a device-connectivity precondition and alternative routing, which matters in a large device/adb toolset.

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 both deviceId and savePath are already documented, including the omit-to-get-base64 behavior. The description restates the base64 return without adding format, defaulting, or constraint detail beyond the schema, so it earns only the baseline.

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 specific verb and resource ("Capture a screenshot") plus the output format ("base64-encoded PNG"), so its purpose is unambiguous. It does not, however, differentiate itself from siblings such as device_shell or file_pull, which could also produce or retrieve image artifacts.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no stated preconditions (a connected and authorized device), and no mention of alternatives or exclusions. The agent must infer from the name alone that this is the screenshot path rather than a shell screencap.

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