Skip to main content
Glama

iph_record

Records an iPhone screen to an MP4 while other calls run, so you can capture test evidence with start, stop, and status actions. Prefer USB to prevent packet loss from damaging the video.

Instructions

Record the phone's screen to an MP4 file while other calls run, as evidence of a test. "start" (one recording at a time; taps keep working), "stop" (ends it and returns path, duration_s, frames, lost_packets; with first_loss_s and a packets_lost warning when packets were lost), "status". The phone shows its screen-sharing indicator while recording. Prefer USB: the phone sends one keyframe, so a packet lost over Wi-Fi damages the picture until the end.

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

Input Schema

NameRequiredDescriptionDefault
pathNostart: absolute path of the MP4 to write (default: in iph's state directory).
actionYes
displayNostart: the display to record (default: the first that shows the screen).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.9

TDQS

A4.2/5.0
Behavior5/5

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

With zero annotations, the description carries the full burden and does so well: it discloses a concurrency constraint (one recording at a time), an externally visible side effect (the phone's screen-sharing indicator), the exact return fields from stop (path, duration_s, frames, lost_packets, plus first_loss_s and a warning on loss), and a transport-level failure mode unique to Wi-Fi. This is behavior an agent could not infer from the schema and would otherwise discover only by trial.

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 statement is front-loaded and the action breakdown follows in a compact parenthetical list, with the USB caveat placed last as a recommendation. Every clause adds information; the nested quoting of action names and the dense stop return-field list are slightly awkward to parse but not wasteful.

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?

There is no output schema, and the description compensates by naming the stop response fields and the loss-warning shape. It also covers the concurrency limit and the visible recording indicator. The remaining gap is edge-case behavior: what happens on start while already recording, or on a path that already exists.

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 description adds substantial meaning to the action enum by explaining what each of start/stop/status actually does, which the bare enum values do not. The path and display parameters are documented in the schema itself (67% coverage), so the description's silence on them is acceptable, though it never clarifies overwrite behavior for an existing path.

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?

The description opens with a specific verb and resource: "Record the phone's screen to an MP4 file while other calls run, as evidence of a test." That is far more precise than the bare name, and the mention of MP4 plus concurrent calls separates it from a one-shot still capture such as a screenshot. It never names a sibling explicitly, so the differentiation is implied rather than stated.

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?

Each of the three actions is given operational meaning: start begins one recording with taps still working, stop ends it and returns artifacts, status reports. The added "Prefer USB" instruction is real usage guidance tied to a concrete failure mode (keyframe loss over Wi-Fi). However, it never states when to pick this tool over a screenshot/read alternative, or what to do if a recording is already running.

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