Skip to main content
Glama

SqueezeVid

Video Compression Bitrate & FFmpeg Planner

calculate_compression_plan
Read-onlyIdempotent

Calculate exact target video/audio bitrates with 5% container safety headroom, recommended resolution (never upscaling), quality assessment, copy-pasteable 1-pass and 2-pass FFmpeg commands, and the best SqueezeVid browser/cloud mode to fit a target size or platform upload cap.

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": {
      "duration_seconds": "<duration_seconds>"
    },
    "name": "calculate_compression_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
codecNoTarget video codec (default 'h264' for widest compatibility).h264
platformNoOptional target platform ('discord', 'whatsapp', 'email', 'tiktok', 'instagram', 'twitter', 'x', 'telegram').
input_size_mbNoOptional current file size in MB (used to compute reduction % and pick browser WASM vs WebCodecs vs Cloud).
target_size_mbNoMaximum desired output file size in MB (optional if platform provides a preset target).
duration_secondsYesVideo duration in seconds (must be > 0).
source_resolutionNoOptional source resolution so recommendations never upscale.original
audio_bitrate_kbpsNoDesired audio bitrate in kbps (0 for muted video, default 128).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish this is a read-only, idempotent, closed-world, non-destructive computation, so the safety profile is fully covered. The description adds real behavioral detail beyond that — the 5% container safety headroom, the never-upscale constraint, 1-pass vs 2-pass command output, and the WASM/WebCodecs/Cloud mode selection. It does not say what happens when neither target_size_mb nor platform is supplied, which is the one behavioral branch that matters.

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?

It is a single dense sentence, but it is front-loaded with the core verb and result and every clause names a distinct output, so there is little waste. The run-on list format is slightly harder to scan than short separated sentences would be.

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?

With no output schema, the description carries the burden of describing returns and does so thoroughly by listing bitrates, resolution recommendation, quality assessment, commands, and mode. The main omission is the interaction between target_size_mb and platform when neither is provided, which an agent would need to know before calling.

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 100%, so every parameter is already documented, and the description largely restates the schema's intent (target size, platform cap, no upscaling). It adds only marginal meaning, such as naming the end goal that target_size_mb and platform serve, without new syntax or format guidance. Baseline 3 applies.

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 opens with a specific verb and resource ('Calculate exact target video/audio bitrates') and enumerates the concrete artifacts produced: bitrates, resolution, quality assessment, FFmpeg commands, and SqueezeVid mode. It is very clear what the tool does, but it does not distinguish itself from the sibling build_ffmpeg_command, which plausibly also produces FFmpeg commands — that overlap is left unresolved.

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 by the trailing phrase 'to fit a target size or platform upload cap', which hints at the scenario but never states when to use this instead of build_ffmpeg_command or recommend_squeezevid_tool. There are no exclusions, prerequisites, or sibling routing instructions.

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.