Skip to main content
Glama

Generate a colour matte file

generate_color_matte_file

Create solid-color still images (.png/.jpg/.tif) or silent videos (.mp4/.mov) for backgrounds, slugs, and placeholders when a media file is needed.

Instructions

Create a solid-colour media file to import: a still image (.png, .jpg, .tif) or a video of a given length (.mp4, .mov), chosen by the extension of output_path. Use it for backgrounds, slugs and placeholders when a file is needed. The video has no audio stream. Returns the new file's size, frame size, color and, for video, duration and fps. 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_color_matte_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNoFrame rate of the video in frames per second (video outputs only). Default 30.
colorNoColour as "#rrggbb" (also "#rgb") or [r, g, b] with 0-255 each. Default "#000000" (black).
widthNoFrame width in pixels (even for video). Default 1920.
heightNoFrame height in pixels (even for video). Default 1080.
durationNoLength of the video in seconds (video outputs only). Default 5.
overwriteNoReplace output_path if it already exists. Default false: an existing file makes the tool fail with FILE_EXISTS.
output_pathYesAbsolute path of the file to write: .png, .jpg, .jpeg, .tif, .tiff or .bmp for a still; .mp4 or .mov for a video.
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.5/5.0
Behavior5/5

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

Goes well beyond the supplied annotations and schema: it discloses that the output is written to disk via ffmpeg rather than into the timeline, that video outputs carry no audio stream, that ffmpeg and ffprobe are prerequisites with a documented FFMPEG_NOT_FOUND failure, and it names check_ffmpeg as the verification step. It also enumerates the return payload (file size, frame size, colour, and duration/fps for video), which is valuable given there is no output schema. Nothing contradicts the annotations; the mutation implied by readOnlyHint=false is consistent with the file-writing behaviour described.

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?

Front-loaded with the core action and format selection, then prerequisites and return values in descending order of importance. Every sentence carries distinct information — no restatement of the name and no filler.

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 8-parameter writing tool with no output schema, the description covers the missing pieces: output type selection, prerequisites and their error code, absence of audio, on-disk versus timeline scope, and the shape of the result. An agent can decide, invoke, and interpret the outcome without further documentation.

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 every parameter already carries its own documented meaning, defaults, and bounds. The description adds only the linkage that the container/type is chosen from output_path's extension and that video length comes from a parameter — useful framing, but not new semantics 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 ("Create a solid-colour media file to import") and immediately specifies the two output classes — a still image or a video — selected by the extension of output_path, which an agent cannot infer from the name alone. It is clearly differentiable from siblings like generate_test_pattern_file, generate_tone_file, and generate_silence_file by naming the concrete artefact (a solid colour) and the supported formats.

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 an explicit when-to-use context ("backgrounds, slugs and placeholders when a file is needed") and an explicit when-not/where ("Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed"). It does not name a sibling alternative such as generate_test_pattern_file or generate_silence_file for the adjacent cases, so the alternative routing 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