Skip to main content
Glama

stb_screencap

Capture the current Android screen to a saved image file for runtime UI inspection, returning the file path or a note when the app blocks capture.

Instructions

Take a screenshot of the CURRENT screen. Returns a note about the saved file path (may be blocked if the app sets FLAG_SECURE).

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose a non-obvious behavioral trait: the call may be blocked when the app sets FLAG_SECURE, and it reports a saved file path rather than image bytes. It does not cover permissions, prerequisites (device/emulator attachment), or where the file is written, which keeps it short of a 5.

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 no waste; the core action and its scope come first, followed by the return/failure note. Nothing is repeated from structured fields.

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 zero-parameter capture tool with an output schema present, the definition covers the action, the return shape in prose, and the main failure mode. It omits prerequisites such as an attached device and does not say what screen region or display is captured in multi-display setups.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline of 4 applies. The absence of arguments is consistent with the empty object schema.

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 specific verb and resource ('Take a screenshot') and scopes it with 'CURRENT screen', so an agent knows it captures present state rather than a stored or static image. It is a distinct, unambiguous action even against screenshot-adjacent siblings like stb_see.

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 implied by the imperative 'Take a screenshot of the CURRENT screen' and the FLAG_SECURE caveat signals when it will fail, but the definition names no alternatives or conditions for choosing a different capture/inspection tool. Guidance is inferable rather than stated.

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