Skip to main content
Glama

Analyze media

analyze_media
Read-onlyIdempotent

Analyze local media files with FFmpeg to probe streams, detect silences and scene cuts, measure loudness in LUFS, or extract source frames as images without opening Premiere.

Instructions

Analyze a media file locally with FFmpeg (no Premiere needed): probe streams, detect silences (for jump cuts), detect scene cuts, measure loudness (LUFS), or grab source frames as images.

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>",
      "file": "<file>"
    },
    "name": "analyze_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes
asyncNoRun as a background job: returns job_id at once (see jobs)
timesNoframes: source times
actionYes
noise_dbNo
thresholdNoScene threshold 0-1, default 0.3
min_silenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.3

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and closed-world, so safety is covered; the description adds genuinely new context that this runs locally via FFmpeg against the file rather than through the host application. It does not disclose cost/duration of FFmpeg runs, whether 'frames' writes image files to disk (which would be ambiguous against readOnlyHint), or any failure behavior for missing codecs, leaving the agent to guess.

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?

One front-loaded sentence: verb, environment, then the mode list, with no filler. Every clause maps to a real capability of the tool, and no phrasing is repeated.

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?

With five distinct modes and no output schema, the description should indicate what each mode returns (stream info, silence intervals, cut timestamps, LUFS values, image paths). It names the modes but not their results, and leaves the async job flow to a single schema field reference, so an agent knows what the tool does but not quite what it gets back.

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 only 43%, so the description must compensate: it does explain the action enum values in behavior terms (silences for jump cuts, LUFS loudness, scene cuts) and ties 'frames' to source frames. But three parameters—noise_db, min_silence, and the async/background-job option—receive no explanation here, so meaning for roughly half the parameters comes from little more than the enum names.

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 (analyze) and resource (a media file) and then enumerates all five modes—probe, silence, scenes, loudness, frames—which map one-to-one onto the action enum. The parenthetical '(no Premiere needed)' plus 'locally with FFmpeg' immediately separates it from the editing/project siblings, so an agent can pick it without opening the schema.

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 strongly implied per mode ('detect silences (for jump cuts)', 'measure loudness (LUFS)', 'grab source frames as images'), which tells the agent what each action is for. However, there is no explicit when-not guidance and no routing to overlapping siblings such as export_frames or get_item_info, so the agent must infer the boundary.

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