Skip to main content
Glama

Compress & Resize Local Video (Auto GPU / CPU)

media_compress_video

Compress local MP4, MOV, or MKV videos with FFmpeg using GPU acceleration or CPU fallback to reduce file size while keeping footage on disk.

Instructions

Compress a local MP4/MOV/MKV video using local FFmpeg with automatic hardware GPU acceleration (NVENC, Intel QSV, AMD AMF, Apple VideoToolbox, MediaFoundation) or CPU fallback (libx264/libx265). Up to 1080px is Free; >1080px / 4K requires ThisMyOwn PRO.

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_compress_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
crfNoQuality factor (lower = higher quality; 22-28 recommended)
codecNoTarget video codec: h264 (universal) or hevc (higher compression)h264
presetNomedium
maxWidthNoOptional max width in pixels while keeping aspect ratio
inputPathYesLocal video file path
outputPathNo
accelerationNo"auto" uses detected GPU encoder with safe CPU fallback; "gpu" forces GPU; "cpu" forces libx264/libx265auto

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.3/5.0
Behavior3/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 usefully discloses automatic GPU detection with CPU fallback and a 1080px free-tier limit, but does not explain output behavior, overwrite semantics, permissions, or what happens on failure.

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 two tight sentences with no filler. Purpose, acceleration approach, codecs, formats, and licensing are front-loaded and easy to scan.

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 mutation tool with no annotations and no output schema, the description covers purpose and acceleration but omits return/output expectations and parameter semantics. It is minimally sufficient for an agent to know what the tool broadly does, but not complete for confident invocation.

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 71%, but the description adds no parameter-level meaning beyond what the schema already provides. Undocumented parameters such as preset and outputPath remain unexplained, and the description only repeats the acceleration fallback concept already present in the schema.

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 and resource: compress a local MP4/MOV/MKV video using FFmpeg. It clearly distinguishes a video compression operation from image/PDF/audio siblings by naming video formats and codecs, though it does not explicitly name sibling tools.

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 implied by 'Compress a local video' and the supported file formats, but there is no explicit when-to-use or when-not-to-use guidance. It does not tell the agent when to prefer this tool over alternatives such as media_trim_extract_audio or media_concat.

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