Skip to main content
Glama

Analyze recording for black/dim frames

mobile_analyze_recording

Analyze a mobile recording to compute mean grayscale, detect black/dim runs, and classify brightness into OEM-agnostic buckets for regression testing.

Instructions

Sample mean grayscale over an MP4 (ffmpeg), detect black/dim runs, and classify OEM-agnostic brightness buckets (true_black, near_black_content, system_launcher_idle, dark_app_ui, light_app_ui). Bucket ranges are heuristics—calibrate with exportSampleFrames on the device under test. Use mode='flash' for one-call regressions. Full per-frame timeline is omitted unless includeFullTimeline=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fpsNo
modeNoflash: exportSampleFrames=true, timelineDownsampleMs=100, blackThreshold=16default
pathNo
marksNo
serialNoExact ADB serial from mobile_devices_list; never inferred when multiple devices exist
artifactUriNo
dimThresholdNo
blackThresholdNoMean gray below this counts as black (default 16 = true_black)
exportSampleFramesNo
includeFullTimelineNo
timelineDownsampleMsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
marksYes
widthYes
heightYes
dimRunsYes
samplesYes
blackRunsYes
sampleFpsYes
durationMsYes
frameCountYes
hasDimFlashYes
maxDimRunMsYes
bucketCountsYes
dimThresholdYes
dimFrameCountYes
hasBlackFlashYes
maxBlackRunMsYes
blackThresholdYes
blackFrameCountYes
lastDimOffsetMsYes
timelineSummaryYes
dimRunsTruncatedYes
firstDimOffsetMsYes
meanGrayTimelineNo
lastBlackOffsetMsYes
blackRunsTruncatedYes
firstBlackOffsetMsYes
Behavior4/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, but the description adds context: it explains the heuristic nature of bucket ranges, the need for calibration, and that full timeline is omitted unless includeFullTimeline=true. This goes beyond annotations.

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?

Three sentences, front-loaded with purpose. Every sentence adds value: first defines core function, second adds calibration note, third mentions mode and timeline option. No wasted words.

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?

Given 11 parameters and an output schema (present but not shown), the description covers the main purpose, calibration, mode usage, and timeline behavior. It would be stronger if it explained the output format, but the output schema exists. Almost complete for a complex tool.

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 description coverage is 27% (3 of 11 params). The description adds meaning for mode (flash sets defaults) and mentions exportSampleFrames and includeFullTimeline, but leaves many parameters (fps, path, marks, etc.) unexplained. The description compensates partially but not fully for low schema coverage.

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 clearly states the tool samples mean grayscale over an MP4, detects black/dim runs, and classifies brightness buckets. It uses specific verbs and distinguishes from siblings like mobile_theme_flash_report by mentioning mode='flash' for regressions.

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?

The description provides explicit guidance for using mode='flash' and calibrating with exportSampleFrames. It implies the tool is for analyzing recordings for brightness issues, which is clear but does not explicitly state when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Zyzto/polyscreen-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server