Skip to main content
Glama

export_gif

Converts a video into an optimized animated GIF or WebP that fits a file-size budget for PRs, issues, and READMEs by reducing frame rate, width, and quality as needed.

Instructions

Export a video as an optimized animated GIF or WebP that fits a file-size budget (default: GitHub's 10 MB image limit), for PRs, issues, and READMEs. Steps fps, width, and palette/quality down until it fits and reports the settings used.

Input Schema

NameRequiredDescriptionDefault
fpsNoStarting frame rate (default 12).
inputYesPath to the source video.
startNoStart at this many seconds into the video.
widthNoStarting width in px (default 960); height follows the aspect ratio.
formatNogif (plays everywhere, default) or webp (animated WebP, usually much smaller).
outputNoOptional output path. Defaults under SCREENCAST_HOME/edits.
durationNoExport only this many seconds (default: to the end).
maxBytesNoFile-size budget in bytes (default 10000000, under GitHub's 10 MB limit for images). Quality steps down until the file fits.
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.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the adaptive strategy (steps fps, width and palette/quality down until the file fits) and that it reports the settings used, which tells the agent output is degraded rather than failing. It does not say what happens if the budget cannot be met or that overwrite is off by default, leaving some mutation/side-effect behavior undocumented.

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?

Two sentences, both front-loaded with the essential purpose before the mechanical detail. Nothing is redundant with the title and every clause adds information.

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?

There is no output schema, and the description partially compensates by saying it reports the settings used. For a 9-parameter export tool with no annotations, the remaining gap is the failure mode when the size budget cannot be met.

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 already 100%, so the baseline is 3; the description still adds meaning by explaining that fps and width are starting values that get reduced, and by restating the 10 MB default budget as a GitHub-derived limit. It doesn't clarify start/duration or overwrite semantics beyond 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 (export a video as an animated GIF/WebP) plus the distinguishing constraint: it fits a file-size budget. That budget-driven framing separates it from convert, compress and export_preset without the agent opening any schema.

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?

Names the intended destinations (PRs, issues, READMEs) and the default 10 MB GitHub limit, which is a clear usage context. It never names an alternative tool or states when not to use this, so the routing guidance is implied rather than explicit.

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