Skip to main content
Glama

compress

Reduce video file size by applying CRF-based H.264 or H.265 encoding, letting you balance output quality against storage needs.

Instructions

Compress video to reduce file size using CRF-based H.264/H.265 encoding. Control quality vs size trade-off.

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": {
      "input": "<input>"
    },
    "name": "compress"
  }
}

Input Schema

NameRequiredDescriptionDefault
crfNoCRF value (0=lossless, 23=default, 51=worst). Lower = better quality, bigger file
codecNoVideo codeclibx264
inputYesInput video file path
outputNoOutput file path (default: input_compressed.mp4)
presetNoEncoding speed preset. Slower = better compressionmedium

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It omits that this is a re-encode that writes a new output file, whether an existing output is overwritten, whether it is lossy, and that encoding time varies with preset — all material facts for a write-producing tool. Only the quality/size trade-off concept is conveyed.

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?

Two sentences, front-loaded with the operation and its purpose, then the tuning concept. No filler, no repetition of schema content, appropriate size for the payload.

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?

The parameter surface is fully documented in the schema and there is no output schema to explain, so the description is not required to cover returns. For a mutation tool with zero annotations, though, it should say something about the output file, overwrite behavior, or processing cost; those gaps leave it only minimally adequate.

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 description coverage is 100%, including CRF range semantics, codec and preset enums, and the output default, so the baseline is 3. The description adds only the framing that CRF controls the quality-vs-size trade-off, which mildly reinforces the schema's own crf documentation without adding new detail.

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?

States a specific verb and resource ('Compress video to reduce file size') plus the technical method (CRF-based H.264/H.265 encoding), so the agent knows exactly what operation is performed. It does not, however, distinguish itself from siblings like convert or resize that could also shrink a file, so the agent must infer the boundary.

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 the stated goal ('reduce file size') and the 'quality vs size trade-off' framing, which hints this is the choice for deliberate re-encoding. There is no explicit when-to-use versus convert/resize guidance and no exclusions, so the agent must reason about the alternative among 16 siblings on its own.

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