Skip to main content
Glama

Probe a media file

probe_media_file
Read-onlyIdempotent

Reads video, audio, or image technical properties with ffprobe without importing, so you can check codecs, resolution, frame rate, duration, and audio before choosing sequence settings.

Instructions

Read the technical properties of a video, audio or image file with ffprobe, without importing it. Returns the container, duration in seconds, size in bytes, overall bit rate, start timecode, and for every stream: type, codec, width/height, fps, pixel format, bit depth, rotation (clockwise degrees), field order, colour space, sample rate, channels, channel layout, duration and timecode. Use it to choose sequence settings or to check a file before importing. For an item already in the project, get_item_media_info reports what Premiere sees. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.

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": "probe_media_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of the media file on this computer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (which already cover read-only, idempotent, non-destructive), it discloses that it works on the file on disk via ffmpeg, not on the timeline, that Premiere is not required, that ffmpeg/ffprobe must be installed, and the specific failure code FFMPEG_NOT_FOUND. This is exactly the operational context annotations cannot express.

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?

Purpose is front-loaded in the first clause, followed by return contents, then usage and constraints. The long enumeration of stream fields is dense but earns its place given there is no output schema; a slightly tighter list would be better, but nothing is padding.

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

Completeness5/5

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

With no output schema, the description supplies the return shape in detail, plus prerequisites, error behavior, and the sibling alternative. For a one-parameter read tool this leaves nothing an agent would need to call it correctly.

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 100% and the single 'path' parameter is fully documented as an absolute path. The description reinforces that it is a file on disk rather than a project item, which adds a little meaning, but does not add format or validation detail beyond the schema — baseline 3 applies.

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 and resource — 'Read the technical properties of a video, audio or image file with ffprobe, without importing it' — and immediately enumerates what it extracts. It also explicitly contrasts itself with the sibling get_item_media_info, so an agent can distinguish the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use conditions ('to choose sequence settings or to check a file before importing') and names the alternative for the in-project case ('For an item already in the project, get_item_media_info reports what Premiere sees'). The boundary between the two tools is stated rather than inferred.

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

Deploy Server

Other Tools