Skip to main content
Glama

Convert Video Clip to Palette-Optimized GIF

media_to_gif

Convert a local video segment into a two-pass palettegen animated GIF using local FFmpeg, with control over start time, duration, frame rate, and width—files stay on disk.

Instructions

Convert a local video segment into a crisp two-pass palettegen animated GIF via local FFmpeg.

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": {
      "inputPath": "<inputPath>"
    },
    "name": "media_to_gif"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNo
widthNo
startSecNo
inputPathYesLocal video file path
outputPathNo
durationSecNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses the local FFmpeg dependency and the two-pass palettegen technique, but it does not explain file creation/overwrite behavior, outputPath handling, error conditions, or performance implications for a tool that writes a generated file.

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 a single front-loaded sentence with no filler. Every phrase contributes either the core action, the output format, or a relevant technical detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter tool with no annotations, no output schema, and low schema description coverage, this definition is too thin. It identifies the operation and dependency, but omits the parameter, output-file, and behavioral details an agent would need to invoke it correctly.

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

Parameters2/5

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

Schema description coverage is only 17%, so the description needed to compensate for undocumented parameters. It gives vague hints through 'video segment' and 'crisp,' but never explains fps, width, startSec, durationSec, or outputPath, leaving most parameters semantically opaque.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (convert), resource (local video segment), and output (animated GIF), and adds technical context (two-pass palettegen). It does not explicitly distinguish itself from nearby media tools such as media_extract_frames or media_compress_video, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to choose this tool over alternatives, no prerequisites, and no exclusions. The implied use case is clear from the purpose sentence, but the description provides no deliberate usage direction.

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