Skip to main content
Glama

convert_media

Convert video and image files to the output path's format with selectable Moviola grey telecinema presets; each run is logged to SQLite with before/after bytes and dimensions for auditing.

Instructions

Convert any video/image file to the output path's format.

The preset shapes the pixels (standard = NTSC-J 8-bit grey 8 colours, intersect = 1-bit overcalc grey, torch = intersect at 5 fps and 360p/480p, canine = Canine Logic Moviola Tessersect 90 fps 120p-cell 4x4 collage, passthrough = no Moviola filter, which for gif to mp4 reproduces the OpenCode plugin transcode). The output extension chooses the container: gif, mp4, webm, webp, png, jpg and anything else ffmpeg muxes. Resolution may be chosen in lines (height, the p metric) or in DPI at a named reference width (pixels = dpi * inches), never both. Every conversion is recorded in moviola.db; the result carries before/after bytes and the ratio.

Input Schema

NameRequiredDescriptionDefault
crfNo
dpiNo
fpsNo
heightNo
outputYes
presetNostandard
sourceYes
db_pathNo
verboseNo
ffmpeg_dirNo
timeout_secondsNo
reference_width_inchesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that every conversion is recorded in moviola.db, that the result carries before/after bytes and a ratio, and the hard constraint that height and dpi are mutually exclusive ('never both'). It omits overwrite semantics, failure modes, and the meaning of timeout_seconds/verbose.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is front-loaded and the height/dpi rule is stated crisply, but the preset parenthetical is a dense, jargon-laden run ('Canine Logic Moviola Tessersect 90 fps 120p-cell 4x4 collage') that is hard for an agent to map onto concrete behavior. Content earns its place, but the phrasing costs clarity.

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 12-parameter mutation tool with no annotations and no output schema, the description supplies the return shape (before/after bytes, ratio) and the db side effect, which is the most important missing structure. Remaining gaps are secondary knobs and error behavior rather than core call correctness.

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 0% across 12 parameters, so the description must compensate; it covers the key knobs (preset, output extension, height vs. dpi with the pixels = dpi * inches formula, reference width) but leaves crf, fps, db_path, verbose, ffmpeg_dir, and timeout_seconds completely undocumented in both schema and description. Partial compensation earns a middle score.

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 ('Convert any video/image file to the output path's format') and the mechanism (output extension selects container), which distinguishes it from siblings like probe_media or slideshow_from_images. It never explicitly names an alternative, so it stops short of 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use/when-not guidance, no mention of alternatives (probe_media for inspection, list_presets for preset discovery), and no prerequisites such as needing ffmpeg or how db_path interacts with the default moviola.db. The agent must infer routing from the purpose sentence alone.

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