Skip to main content
Glama

Stop screen record

stop_screen_record
Destructive

Stops screen recording, finalizes the MP4, and pulls it to a local path; fails with an explanation if no frames were captured instead of saving an empty file.

Instructions

Stop the screen recording, finalize the mp4, and pull it to a local path. Fails with an explanation if the recording holds no frames (the display was asleep) instead of saving an empty file.

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

Input Schema

NameRequiredDescriptionDefault
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.
local_pathYesLocal path to save the pulled mp4, e.g. /tmp/rec.mp4.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only say destructiveHint=true and openWorldHint=false; the description adds real substance by disclosing that the recording is finalized, that an mp4 is written to a local path, and that an empty capture yields an explanatory error rather than a zero-byte file. It leaves gaps on overwrite behavior when local_path already exists and on what is returned on success.

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 sentences, front-loaded with the action and its effects, followed by the one non-obvious failure mode. Nothing is redundant with the title or schema.

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 two-parameter tool with no output schema and annotations that already flag destructiveness, the description covers the essentials: what is produced, where it goes, and the notable failure path. Only the return value and any overwrite semantics are missing, which is minor at this complexity.

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 coverage is 100%, so both parameters are already documented in the schema. The description's 'pull it to a local path' reinforces local_path's role but adds no format or edge-case detail, and serial is not mentioned at all. Baseline 3 is appropriate when the schema carries the parameter burden.

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 ('Stop the screen recording') plus the two consequential effects (finalize the mp4, pull it to a local path). The pairing with start_screen_record is unmistakable, and the failure mode distinguishes it from any generic stop tool.

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: the tool is only meaningful after a recording has begun, and the no-frames caveat hints at a precondition. But it never states the prerequisite explicitly (start_screen_record) nor what happens if no recording is active, so the agent must infer the sequencing.

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