Skip to main content
Glama

screenshot

Capture the current device or app-window image to inspect UI state and derive fractional positions for taps and swipes.

Instructions

Take a screenshot of the device (on "mac": of the app's window). Positions for tap and swipe are fractions of this image.

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": {
      "device": "<device>"
    },
    "name": "screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNoApp id: Android package, Apple bundle identifier; on "mac" the bundle identifier or app name (required there)
deviceYesDevice id (or exact name) from the devices tool
maxSizeNoScale the image down so its long edge is at most this many pixels. Default 1280; 0 keeps the full resolution

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose one real behavioral trait: on "mac" the capture is of the app's window rather than the whole device. It does not say how the image is returned (inline payload vs. resource), whether capture may fail if the app is not running, or whether the call has any side effects on the target device.

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?

Two short sentences with zero filler; the core action is stated first and the coordinate-relevance note follows. Nothing is repeated from the schema or title.

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 three-parameter, non-destructive capture tool with fully described parameters and no output schema, the description covers what the image represents and how it relates to downstream coordinate tools. Only the return mechanism and failure conditions are left unstated.

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 app, device, and maxSize are already fully documented, and the description adds no parameter-level detail beyond them. The coordinate note is useful context about the resulting image but does not deepen any parameter's meaning, so the baseline of 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?

States a specific verb and resource ("take a screenshot of the device") and adds a platform-specific refinement for "mac" (app window instead of device). That is clear enough to act on, but it never contrasts itself with siblings such as ui_elements, so the agent must still infer why one would choose an image over an element dump.

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

Usage Guidelines4/5

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

The second sentence explains the practical role of the output: "Positions for tap and swipe are fractions of this image," which tells the agent when this call is needed — before coordinate-based tap/swipe. There are no explicit exclusions or statements about alternatives, so it falls short of a 5.

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