Skip to main content
Glama

media_tools_video_compress

Make a video web-ready: H.264 MP4 that plays everywhere (or VP9 WebM), scaled, faststart, by quality level or to a target file size. Also turns a GIF into a video a tenth of the size. Returns the file, a poster frame and a tag. Price: $0.05 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_compress"
  }
}

Input Schema

NameRequiredDescriptionDefault
muteNoDrop the audio track (background and hero videos).
startNoWhere to start, in seconds.
videoNoVideo file as base64 (MP4, MOV, WebM, MKV, AVI or GIF).
formatNomp4: H.264 + AAC, plays everywhere. webm: VP9 + Opus, smaller, slower to make.mp4
maxFpsNo
qualityNohigh is visually lossless, medium suits web pages, low is for previews.medium
durationNoHow many seconds to keep. To the end when omitted.
maxWidthNo
videoUrlNoLink to the video.
maxHeightNo
targetBytesNoAim for this file size instead of a quality level (25 MB for Discord, 8 MB for email).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/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 paid x402 model ($0.05 USDC, charged only on success), the two output containers with a speed/size tradeoff (WebM "smaller, slower to make"), faststart/max-resolution scaling behavior, and the exact return payload (file, poster frame, <video> tag). It omits failure/refund behavior and processing limits, which keeps 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.

Conciseness4/5

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

The core capability, formats, and price are all front-loaded in the first two sentences with no filler. The trailing "Part of Media tools: ..." catalog sentence is boilerplate that lists sibling capabilities and does little work for this specific call.

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?

Good coverage of outputs and pricing for a tool with no output schema, but with 11 parameters and zero required fields, the description never explains that input must arrive as either <i>video</i> base64 or <i>videoUrl</i> — a meaningful gap an agent could stumble on. Limited also on size/duration ceilings that a compression tool would plausibly hit.

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 73%, so most parameters are self-documented, but the description adds genuine meaning the schema does not: that <i>quality</i> and <i>targetBytes</i> are alternative modes ("by quality level or to a target file size") and that format choice trades reach against size. It does not clarify the video vs videoUrl input paths, which is the main remaining ambiguity.

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?

"Make a video web-ready: H.264 MP4 ... (or VP9 WebM), scaled, faststart, by quality level or to a target file size" names a specific verb (compress/transcode), the resource (video), and the concrete outputs. It also carves out a distinct secondary capability (GIF-to-video) and states the return payload, so an agent can tell this apart from media_tools_video_to_gif and media_tools_thumbnails without opening the schema.

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

Usage Guidelines3/5

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

Usage is only implied: the description frames the tool as the way to make a clip web-ready and mentions quality-vs-target-size as two modes, but never states when to pick this over media_tools_video_to_gif or media_tools_audio_convert, nor any prerequisite conditions. The alternatives offered are internal options rather than sibling routing guidance.

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