Skip to main content
Glama

Convert / transcode

convert

Transcode videos to change container format, codec, resolution, frame rate, or bitrate, including NVENC hardware encoding; output container follows the output file extension.

Instructions

Transcode a video: change container format, codec, resolution, fps, or bitrate. Supports NVENC hardware encoders (e.g. codec='h264-nvenc'). The output container is inferred from the output file extension.

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>",
      "output": "<output>"
    },
    "name": "convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
crfNoQuality (lower = better) for CRF-capable encoders. Ignored if videoBitrate set.
fpsNoTarget frame rate.
codecNoTarget video codec. Omit to keep the source codec where possible.
inputYesPath to the source media file.
outputYesPath for the converted output (extension sets container).
overwriteNoOverwrite the output file if it already exists.
resolutionNoResolution as "WxH" (e.g. 1280x720) or preset (e.g. 720p).
audioBitrateNoTarget audio bitrate, e.g. "192k".
videoBitrateNoTarget video bitrate, e.g. "4M" or "800k".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 burden, and it does disclose one genuinely non-obvious behavior: the output container is inferred from the output file extension. It also flags NVENC hardware encoder support, but says nothing about whether re-encoding is slow/long-running, how existing output files are handled (only in the schema), 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?

Three short sentences, front-loaded with the core action and capability list, then hardware-encoding support, then the extension-inference detail. No filler and nothing repeated.

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 nine-parameter mutation tool with no annotations and no output schema, the description covers purpose and one key behavior but leaves the agent without return-value information or any sense of cost/duration. It is adequate to call the tool correctly thanks to the rich schema, but not complete.

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 all nine parameters are already documented, which sets the baseline at 3. The description usefully reinforces that the container comes from the output extension and gives a concrete NVENC codec example, but adds little beyond what the enum and parameter descriptions already say.

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 ('Transcode a video') and enumerates exactly what can change: container, codec, resolution, fps, bitrate. This distinguishes it well from siblings like trim, concat, and extract_audio, though it never names an alternative explicitly.

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?

The enumerated capabilities imply when to reach for this tool (format/codec/resolution/fps/bitrate changes), but there is no explicit when-not guidance or routing to siblings such as trim for cutting or burn_subtitles for subtitles. Usage is inferable rather than stated.

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