Skip to main content
Glama

screen-recording-stop

Stop a screen recording and retrieve its saved MP4, including recordings that hit the time limit or exited early. Downloads from remote simulators and returns video metadata for review.

Instructions

Stop a screen recording and retrieve its MP4. Call this even after the time limit or an early capture exit. The tool downloads recordings from remote simulators. Returns the saved video and its durationMs. When trimming removes still sections, wallClockMs gives the original duration and trimmedMs gives the time removed. On a foldable simulator the video follows the active panel, keeps the first panel's size, and reports any panelSwitches. Check warning for capture problems, such as an undetected foldable panel.

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": {
      "udid": "<udid>"
    },
    "name": "screen-recording-stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
udidYesTarget ID from `list-devices`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / udid / description
      Previous value: -"Target device id from `list-devices` (iOS Simulator UDID or Android serial)."New value: +"Target ID from `list-devices`."
  2. Addedv0.17.0

TDQS

A4/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 so well: it discloses remote-simulator download, returned fields (video, durationMs, wallClockMs, trimmedMs), foldable-panel behavior with panelSwitches, and a warning field for capture problems. It omits behavior when no recording is active (error vs. no-op) and idempotency, leaving some operational gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and call condition are front-loaded, followed by return-value detail that substitutes for the absent output schema. It is dense but every sentence conveys useful behavior; nothing is obviously wasted.

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

Completeness3/5

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

Since there is no output schema and no annotations, the return-value and edge-case explanation (trimming, foldables, warnings) is valuable and mostly complete. However, failure modes when no recording is in progress and interaction with the start tool are left unaddressed for a stop operation on a required target ID.

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?

The single udid parameter has 100% schema description coverage, so the schema already defines it as the target ID from list-devices. The description adds no further meaning about the parameter, which is acceptable at this coverage level but merits only the baseline.

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 opens with a specific verb and resource: "Stop a screen recording and retrieve its MP4." It clearly distinguishes the stop action from the start sibling and names the concrete artifact returned (MP4).

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?

It supplies a concrete call condition – invoke it even after the time limit or an early capture exit – and notes it downloads from remote simulators. It stops short of naming alternatives or saying when another tool (e.g., a finish-recording variant) should be used instead.

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