Skip to main content
Glama

popcorn_analyze

Analyze video files by extracting keyframes and transcripts, with smart presets for video type and objective to tailor transcription and frame extraction.

Instructions

Analyze a video file. Extracts keyframes and transcripts. RECOMMENDED: First use popcorn_suggest to get optimal settings, or specify videoType and objective to use smart presets.

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

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the video file.
modelNoWhisper model: tiny, base, small, medium, large. For whisper-cpp: path to a ggml model file.
outDirNoOutput directory for analysis bundle.
backendNoTranscription backend. 'auto' picks the best available. Options: whisper (OpenAI, most compatible), whisper-cpp (fast C++), mlx-whisper (Apple Silicon optimized), faster-whisper (GPU accelerated).
languageNoTranscription language code (e.g., 'en').
frameModeNoOverride: 'scene' detects visual changes, 'interval' uses fixed timing.
maxFramesNoOverride: maximum frames to extract.
objectiveNoWhat you want to accomplish. Options: summary (quick overview), detailed (thorough analysis), find_moment (searching for something specific), transcribe (focus on audio), visual_only (no transcription), quick_scan (fast preview).
videoTypeNoType of video content. This auto-configures optimal settings. Options: screencast (UI recordings, tutorials), presentation (slides, lectures), movie (films, TV), interview (podcasts, talking heads), surveillance (security footage), sports (live action).
transcribeNoOverride: whether to transcribe audio.
framesPerMinNoOverride: frames per minute (interval mode).
inlineFramesNoOverride: frames to return as base64 in response.
maxChunkCharsNoOverride: transcript chunk size.
sceneThresholdNoOverride: scene sensitivity 0-1 (lower = more frames).
minSceneIntervalNoOverride: minimum seconds between scene frames.
maxTranscriptCharsNoOverride: transcript excerpt length.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.2
    • changedInput schema / properties / model / description
      Previous value: -"Whisper model: tiny, base, small, medium, large."New value: +"Whisper model: tiny, base, small, medium, large. For whisper-cpp: path to a ggml model file."
  2. First observedv0.4.0

TDQS

A3.6/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 disclosure burden. It usefully explains that videoType/objective auto-configure settings via smart presets, which is real behavioral context, but it omits side effects an agent should know before running a heavy job: that an output bundle is written to outDir (and whether existing content is overwritten), expected runtime, and whether inline frames bloats the response.

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?

Three short sentences, front-loaded with purpose and followed by the recommended workflow, so the agent reads the important part first. The uppercase 'RECOMMENDED' is slightly shouty but functions as an effective signal rather than waste.

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?

For a 16-parameter processing tool with no annotations and no output schema, the description covers the core purpose and the preset workflow but leaves the agent guessing about output shape, runtime, and disk side effects. Adequate to invoke correctly on the happy path, incomplete for a tool of 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 description coverage is 100%, so per-parameter meaning is already documented, establishing a baseline of 3. The description adds one piece of cross-parameter semantics not in the schema: that videoType and objective interact to select presets and that other params act as overrides, but it gives no guidance on typical values or conflicts.

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 specific verb and resource ('Analyze a video file') and names the two outputs ('keyframes and transcripts'), so the agent knows what it produces. It also points at popcorn_suggest as the companion tool, though it does not differentiate itself from popcorn_read or popcorn_presets, which the agent must infer.

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 concrete routing guidance: use popcorn_suggest first for optimal settings, or supply videoType and objective to trigger smart presets. What's missing is any when-not guidance (e.g., when to prefer popcorn_read on an existing bundle instead of re-analyzing).

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