Skip to main content
Glama

take_screenshot

Capture the Android device screen and either save it to a specified host file path or return the image as a PNG for direct use.

Instructions

Capture the device screen. If savePath is provided, saves to the host machine. Otherwise, returns the image directly to the client as a renderable PNG image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serialNoSpecific device serial number
savePathNoAbsolute file path on the host to save the screenshot (e.g. '/Users/user/Desktop/screenshot.png')
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses the key behavioral distinction: if savePath is provided, the file is saved locally; otherwise, the image is returned to the client. This is helpful context beyond the schema, though it does not cover device selection or error conditions.

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 concise sentences, front-loaded with the primary action and followed by a clear conditional. Every word earns its place; no redundancy or filler.

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

Completeness5/5

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

For a simple tool with two optional parameters and no output schema, the description covers the primary behavior and the return type (PNG image). It is complete enough for an agent to use correctly without additional context.

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

Parameters4/5

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

Schema coverage is 100%, so parameters are already documented. The description adds meaning by explaining the consequence of providing savePath (saves to host) versus omitting it (returns PNG directly), which is not fully captured in the schema descriptions alone.

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?

The description clearly states 'Capture the device screen' with a specific verb and resource. It distinguishes itself from siblings like record_screen (video) and dump_ui_hierarchy (UI layout) by focusing on the screenshot capture and the conditional output behavior.

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 description implicitly clarifies when to use it: whenever a screenshot is needed. It also provides guidance on choosing between saving to the host (via savePath) vs. returning the image directly to the client, though it does not explicitly contrast with alternative tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/abhinav7895/adb-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server