Skip to main content
Glama

render

Encodes media or assembles a timeline into fixed delivery presets (web-1080p, vertical, square, audio-only), with optional alpha overlays, burned-in captions, and loudness normalization.

Instructions

Encode a file or assemble a timeline with a fixed delivery preset: web-1080p (16:9), vertical-9x16, square (H.264+AAC, fit-and-pad) or audio-only (AAC .m4a). Optional alpha overlay / HyperFrames layers on top (timed, stacked by zIndex, positioned and sized keeping their aspect; off-frame layers are clamped and reported in warnings). Optional captions (SRT/VTT/cues/transcript) burned in after composition with HyperFrames or the ffmpeg fallback. Timeline clips can be still images (png/jpg/webp, durationSec, contain/cover, Ken Burns). Optional two-pass loudness normalization of the final mix. Returns measured width/height/fps/codecs/bytes, the effective program duration (transition overlaps removed) and loudness before/after.

Input Schema

NameRequiredDescriptionDefault
inputNoSource media path (or pass timeline)
layersNoSeveral layers (exactly one of overlay/hyperframes each), composited bottom to top; combinable with the legacy overlay/hyperframes params (those become the first layer)
outputYesOutput file path (.mp4 for video presets, .m4a for audio-only)
presetYesEncode preset
overlayNoAlpha video (webm VP9 / mov ProRes 4444) composited over the program
captionsNoCaptions burned in after composition (times are program seconds). Exactly one of srt/vtt/cues/transcript. Video presets only. The SRT used is written next to the output and picked up by export.package
loudnessNoTwo-pass EBU R128 loudnorm of the final mix (pass 1 measures, pass 2 applies the measured values; linear gain when the peak ceiling allows). Off when omitted; pass {} for the defaults (-16 LUFS, -1 dBTP, LRA 11)
timelineNoTimeline: first video track is the program (clips trimmed by in/out, placed by startSec or back-to-back, joined by transitions); audio tracks are mixed under it
overwriteNoReplace the output file if it already exists (default false)
hyperframesNoHyperFrames composition HTML rendered with alpha and composited over the program (needs the optional peer)
layerStartSecNoProgram time where the overlay/HyperFrames layer starts (default 0)
layerDurationSecNoHow long the layer is shown (default: until the layer ends)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 it discloses substantial behavior: preset codecs, overlay clamping and warnings, captions burned after composition, two-pass loudness normalization, and measured return values. It omits some operational side effects, such as overwrite behavior and likely processing cost, but the core behavior is well explained.

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?

The description is front-loaded with the primary action and then covers presets, layers, captions, timeline stills, loudness, and returns in one dense paragraph. Every clause carries information, but the single-block structure and long parentheticals make it harder to scan than it could 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?

For a 12-parameter tool with nested objects, no annotations, and no output schema, the description is substantially complete: it explains presets, composition layers, captions, timeline behavior, loudness normalization, and return fields. The main gaps are operational details such as overwrite semantics and processing cost, which the schema only partially covers.

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%, so the schema already documents the parameters thoroughly. The description adds conceptual grouping and some cross-parameter behavior, such as layers being timed, stacked, and clamped, but it does not need to compensate for schema gaps and mostly restates the structured model.

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 uses specific verbs and resources: encoding a file, assembling a timeline, applying a fixed delivery preset, compositing layers, burning captions, and normalizing loudness. It clearly distinguishes the tool from a simple transcoder, but it does not explicitly separate it from siblings such as compose, trim, cut, or captions.render.

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 opening phrase implies usage contexts: encoding with a fixed delivery preset or assembling a timeline. However, there is no explicit when-to-use guidance, no when-not-to-use guidance, and no named alternatives among the many sibling tools. The agent must infer the routing decision from the feature list.

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