Skip to main content
Glama

Generate a test pattern file

generate_test_pattern_file

Create an H.264 test-pattern video with optional stereo reference tone for leader, calibration, or placeholder media; choose color bars or moving test charts.

Instructions

Create a video file with a test pattern and, unless turned off, a reference tone: SMPTE HD colour bars, or ffmpeg's test charts with moving elements and a counter. Use it for leader bars and tone, for calibration, or as placeholder media with visible motion. Output is H.264 (+ AAC stereo tone) in .mp4 or .mov. Returns the new file's duration, frame size, fps, pattern and tone. Use generate_tone_file for tone alone. 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": {
      "output_path": "<output_path>"
    },
    "name": "generate_test_pattern_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNoFrame rate in frames per second. Default 30.
toneNoInclude a sine tone on a stereo audio track. Default true. false writes a video without an audio stream.
widthNoFrame width in pixels (even). Default 1920.
heightNoFrame height in pixels (even). Default 1080.
patternNo"bars" = static SMPTE HD colour bars (default). "testsrc" = classic test chart with a seconds counter. "testsrc2" = chart with moving elements and a frame counter.
durationNoLength in seconds. Default 10.
overwriteNoReplace output_path if it already exists. Default false: an existing file makes the tool fail with FILE_EXISTS.
output_pathYesAbsolute path of the video to write (.mp4 or .mov).
tone_level_dbNoTone peak level in dBFS. Default -18 (EBU reference; SMPTE uses -20).
tone_frequencyNoTone frequency in Hz. Default 1000.
timeout_secondsNoStop ffmpeg and fail with TIMEOUT after this many seconds. Default 600.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, and the description goes further by naming the output codecs (H.264, AAC stereo), the returned metadata (duration, frame size, fps, pattern, tone), the external dependency and the FFMPEG_NOT_FOUND error. It does not mention the overwrite/FILE_EXISTS behavior, which is the one mutation-safety detail an agent most needs before writing to an existing path; that is left to the schema alone.

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?

It is front-loaded with the purpose, then use cases, then output/return contract, then the sibling alternative, then execution scope and prerequisites — each sentence introduces new, actionable information. There is no filler or repetition of the title.

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?

For an 11-parameter write tool with no output schema, the description covers what an agent needs: what gets produced, the encoding, what the return value contains, the sibling alternative, the execution context (on-disk ffmpeg rather than timeline), and the required dependency with its error code. The remaining details (defaults, ranges) are fully documented in the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds useful framing by clarifying that the tone is included "unless turned off" (the default-on semantics of the tone flag) and by describing the three pattern choices in behavioral terms rather than just enum values. Most other parameter semantics (fps, dimensions, duration, overwrite, tone level) are already fully carried by the schema, so it does not exceed the schema meaningfully.

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 opens with a concrete verb and resource ("Create a video file with a test pattern") and immediately enumerates the two pattern families (SMPTE HD colour bars vs. ffmpeg test charts with motion/counter), so the agent knows exactly what artifact is produced. It also distinguishes the tool from generate_tone_file by name, making the boundary unambiguous.

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?

It gives concrete use cases ("leader bars and tone, for calibration, or as placeholder media with visible motion") and an explicit alternative for the adjacent case ("Use generate_tone_file for tone alone"). It additionally states scope boundaries — works on files on disk with ffmpeg, not the timeline, Premiere Pro not needed — plus the prerequisite (ffmpeg/ffprobe, see check_ffmpeg) and the failure mode if unmet.

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