Skip to main content
Glama

media_tools_video_to_gif

Video to a good-looking GIF or animated WebP: a palette built from the clip itself, your choice of part, frame rate and width, and an optional size cap the tool hits by itself (for Discord, GitHub READMEs, Slack). Price: $0.03 USDC via x402, charged only on success. Part of Media tools: Video and audio chores for sites, apps and docs: turn a clip into a small GIF or animated WebP, compress video to web-ready MP4/WebM with a poster, pull thumbnails and a contact sheet, extract or convert audio with loudness normalization, draw waveforms, and probe a file for what will not play in browsers..

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "media_tools_video_to_gif"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNo
loopNo
startNoWhere to start, in seconds.
videoNoVideo file as base64 (MP4, MOV, WebM, MKV, AVI or GIF).
widthNoOutput width; height follows the aspect ratio. Never upscales.
colorsNoGIF palette size. Fewer colours, smaller file.
formatNogif plays everywhere; animated webp is about half the size with full colour.gif
durationNoHow many seconds to keep. To the end when omitted.
maxBytesNoKeep the file under this size: the tool lowers frame rate and width until it fits (Discord wants 10 MB, GitHub 10 MB, Slack 2 MB for inline play).
videoUrlNoLink to the video.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose non-obvious behavior: pricing of $0.03 USDC via x402 charged only on success, and the fact that the size cap is met automatically by lowering frame rate and width. It omits what the response payload contains and any input-size or failure-mode limits, keeping it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is well-formed and front-loaded with the deliverable and the size-cap behavior. The trailing 'Part of Media tools: ...' paragraph is long family boilerplate enumerating unrelated capabilities (waveforms, loudness normalization, probing) that dilutes focus without helping an agent call this tool.

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

Completeness3/5

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

For a 10-parameter, no-annotation, no-output-schema tool, the description covers purpose, cost and the auto-fit behavior well. It never clarifies the relationship between the video and videoUrl inputs, input size limits, or what a successful response looks like, which are real gaps given the missing output schema.

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 coverage is 80%, so the schema already explains start, width, colors, format, duration and maxBytes in detail. The description's phrase 'your choice of part, frame rate and width, and an optional size cap the tool hits by itself' largely restates what the schema documents, adding little new meaning, so the 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?

The opening clause gives a specific verb and resource pair ('Video to a good-looking GIF or animated WebP') plus the defining mechanism, a palette built from the clip itself. It clearly separates itself from sibling output-oriented tools like media_tools_video_compress by naming GIF/animated WebP as the deliverable.

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 concrete use targets (Discord, GitHub READMEs, Slack) and the size caps each expects, which tells the agent when the tool is the right pick. It stops short of explicitly routing away from siblings such as media_tools_video_compress for full-length video, so there is no hard when-not statement.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources