Skip to main content
Glama

video_compress

Read-onlyIdempotent

Compress a video toward a target file size (targetFileSize such as 25MB; default half the original) -- two-pass encode, a floor bitrate is enforced below which quality degrades too much to be worth watching

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": {
      "fileBase64": "<fileBase64>"
    },
    "name": "video_compress"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileBase64YesThe input file as a base64 string, without a data: prefix.
targetFileSizeNoWanted size of the result, for example: 2MB or 500KB. Best effort.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / fileBase64 / description
      Added value: +"The input file as a base64 string, without a data: prefix."
    • addedInput schema / properties / targetFileSize / description
      Added value: +"Wanted size of the result, for example: 2MB or 500KB. Best effort."
  2. Changed2 schema fields changed
    • addedInput schema / properties / targetFileSize
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / targetPercent
      Removed value: -{
      -  "default": 0.5,
      -  "maximum": 1,
      -  "minimum": 0,
      -  "type": "number"
      -}
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so the bar is lower; the description still adds real value by disclosing the two-pass encode and the enforced floor bitrate that caps how small a file can get before quality collapses.

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?

One front-loaded sentence that leads with the action and target, then appends the encode strategy and quality caveat; the nested parentheticals make it slightly dense but no clause is wasted.

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?

For a two-parameter tool with full schema coverage and safety annotations, the description covers purpose, default, and the key quality constraint; with no output schema it could say more about the returned artifact (e.g. base64 output), which is the only notable gap.

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 100%, so the baseline is 3, but the description adds meaning the schema lacks: the default when targetFileSize is omitted (half the original) and a concrete example format (25MB) reinforcing the schema's '2MB or 500KB'.

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?

States a specific verb and resource ('Compress a video') plus the controlling objective ('toward a target file size'), which cleanly separates it from video_convert, video_trim, and the audio/image/pdf compress siblings.

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?

Gives the default behavior (half the original) and the 'best effort' nature of the target, which implies when the tool is appropriate, but never states when to prefer it over alternatives like video_convert or when compression is a poor fit.

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