Skip to main content
Glama

pipeline

Combine multiple video edits into one ffmpeg re-encode without intermediate files. Save and reuse the step plan on other recordings, or preview the command with dryRun before running it.

Instructions

Run several edits as one ffmpeg process: one re-encode and no intermediate files, instead of a tool call and a re-encode per edit. Steps use the same options as the standalone tools (trim, crop, scale, speed, redact, callout, reframe, zoom) and may end with export_preset or export_gif. The same steps can be saved and re-run on another recording. dryRun returns the plan.

Input Schema

NameRequiredDescriptionDefault
inputYesPath to the source video.
stepsYesEdits in order, each { op, ...the same options as its tool }: trim, crop, scale, speed, redact (redact_region), callout, reframe, zoom (keyframes), and as the last step only export_preset or export_gif. Times in a step are on the timeline as it is at that step, after any earlier trim or speed change; pixel positions are in the frame as it is at that step.
dryRunNoReturn the planned ffmpeg command and output size without running it.
outputNoOptional output path. Defaults under SCREENCAST_HOME/edits.
qualityNoEncoder preset for an mp4 result (default standard).
overwriteNoAllow replacing an existing file at the output path (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.32.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description still discloses important behavior: one re-encode, no intermediate files, reusable saved steps, and dryRun returning the plan without execution. It does not cover permissions, error handling, or normal return values in detail, but it adds substantial behavioral context beyond the schema.

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?

The description is four sentences, front-loaded with the core purpose and performance benefit. Every sentence contributes useful information about supported steps, reuse, and dryRun, with no filler.

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?

For a complex nested pipeline tool, the description covers the central concept, supported operations, export endings, reuse, and dryRun. It leaves normal return values and the exact save/re-run mechanism implicit, but the detailed schema fills most structural gaps.

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 parameter meaning is already largely documented in the schema. The description adds useful context by saying steps use the same options as the standalone tools and may end with export_preset or export_gif, but most parameter-level semantics remain in 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?

The description gives a specific verb and resource: run several edits as one ffmpeg process. It distinguishes itself from the standalone edit tools by explaining that it avoids a tool call and re-encode per edit. The listed supported operations and final export steps make its scope clear.

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?

It clearly implies when to use this tool: for multiple edits that should share one re-encode instead of separate standalone tool calls. It also names the standalone tools as the alternative behavior, though it does not explicitly say when a single edit should use those tools instead.

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