Skip to main content
Glama

Save screen

save_screen

Saves a live device’s current screen source to an XML file for later inspection, locator healing, or baseline capture without needing the device connected.

Instructions

Save the live device's current screen (page source) to .qa-mcp/appium-screens/.xml, to inspect, heal or capture baselines later without a device.

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

Input Schema

NameRequiredDescriptionDefault
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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, and it does disclose the core behavior: a write of page-source XML to .qa-mcp/appium-screens/<name>.xml. It omits important write semantics such as whether an existing file with the same name is overwritten, whether the directory is created automatically, and what the call returns. Those are real gaps for a mutation tool with zero annotation coverage.

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?

One sentence, front-loaded with the verb and resource, then the destination path, then the downstream rationale. No filler or redundancy.

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 one-parameter tool with no output schema or annotations, the description covers what is saved, where it goes, and why. The remaining unknowns (overwrite behavior, return value, directory creation) are minor but not negligible for a file-writing tool.

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 description coverage is 0%, so the description must supply meaning, and it does: the required `name` argument becomes the file name in the `<name>.xml` path template. It does not specify allowed characters, length limits, or whether an extension should be included, leaving some ambiguity for the single required parameter.

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 concrete verb and resource: saving the live device's current screen (page source) as an XML file at a specific path. It is unmistakable what the tool produces, though it does not explicitly contrast itself with the sibling capture_baseline, and mentioning 'capture baselines later' could invite confusion about which tool to use for the baseline itself.

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?

Gives clear situational context: save now so you can inspect, heal, or capture baselines later without a device connected. That communicates the offline-workflow motivation well. It stops short of explicit exclusions or prerequisites (e.g., that a live device session must already exist, or when to prefer inspect_screen instead).

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