Skip to main content
Glama

Make a contact sheet of a file

make_contact_sheet_of_file

Build a contact sheet grid of evenly spaced frames from a video file to review a whole clip at a glance or find a moment, with each tile's file time returned.

Instructions

Build one image with a grid of frames taken at even intervals from a video file, and return it as an image so you can see the whole clip at a glance, followed by the time of every tile. Tiles run left to right, top to bottom; times lists their file times in seconds in that order (each tile is taken from the middle of an equal slice of the range). Saved to output_path when given. Use it to find a moment or to review a long clip; use extract_frame_from_file for one frame at full quality. 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": "make_contact_sheet_of_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoAnalyse up to this file time, in seconds; clamped to the file's length. Must be greater than start. Default: the end of the file.
pathYesAbsolute path of the media file on this computer.
startNoAnalyse from this file time (seconds from the start of the file). Default 0.
framesNoNumber of tiles, 2-48. Default 12.
columnsNoTiles per row, 1-12. Default: the square root of frames, rounded up (4 for 12 frames).
overwriteNoReplace output_path if it already exists. Default false: an existing file makes the tool fail with FILE_EXISTS.
tile_widthNoWidth of each tile in pixels, 64-960 (rounded to even). Default 320. The height follows the aspect ratio.
output_pathNoAbsolute path (.jpg, .jpeg or .png) to save the sheet to. Omit to only look at it (returned as JPEG).
timeout_secondsNoStop ffmpeg and fail with TIMEOUT after this many seconds. Default 300.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false with destructiveHint=false, and the description usefully explains that asymmetry: it only writes when output_path is given, otherwise it just returns a JPEG. It also discloses fault behavior (FFMPEG_NOT_FOUND, and FILE_EXISTS via the overwrite parameter) and the tile-ordering/times correspondence. Remaining gaps are minor (no pagination or size guidance beyond tile_width), so beyond-annotation value is real but not exceptional.

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?

Front-loaded with what the tool produces and the tile/time ordering, then alternatives, then environment caveats. Dense but each clause carries information; the 'Premiere Pro is not needed' aside is mildly extraneous but aids disambiguation.

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?

With nine parameters and no output schema, the description correctly takes on the burden of describing the return value (image plus ordered times list) and the on-disk/ffmpeg execution model. It is complete enough to call correctly, with only minor gaps around failure modes when the file lacks a video stream.

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 the schema already carries ranges, defaults and units for all nine parameters; a 3 is the baseline. The description adds semantics about the output ordering ('left to right, top to bottom', each tile from the middle of an equal slice) rather than new meaning for inputs, so it does not exceed the schema.

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 (build an image with a grid of frames from a video file) plus the return shape (the sheet followed by the time of every tile). It names the sibling it is not (extract_frame_from_file) and clarifies the off-timeline, ffmpeg-based nature, so an agent can distinguish it from the other media tools without opening a 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 explicit when-to-use ('find a moment or review a long clip'), an explicit alternative with its selecting condition ('use extract_frame_from_file for one frame at full quality'), and a prerequisite path ('ffmpeg and ffprobe must be installed (see check_ffmpeg)'). Nothing about selection is left to inference.

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