Skip to main content
Glama

render

Idempotent

Export a composition or selected element/time range to frame-exact H.264 MP4, with language, quality, and scale controls.

Instructions

Render a composition, or one part of it (the time of an element, or from/to), to MP4: H.264, frame-exact, parallel workers. lang picks the language; lang="all" writes one video per language (-.mp4). quality "draft" encodes fast at a lower quality; scale renders fewer pixels (0.5: 960×540 for 1080p). What is rendered is the composition as it was when render was called: edits made while it runs do not change it (a pin from pin freezes it earlier). For a quick look use preview.

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": {
      "composition": "<composition>"
    },
    "name": "render"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoSeconds (2.5), frames ("75f") or beats ("4b", needs meta.bpm). Snapped to a whole frame.
outNo
fromNoSeconds (2.5), frames ("75f") or beats ("4b", needs meta.bpm). Snapped to a whole frame.
langNoLanguage to show (e.g. en). Default: the source language the documents are written in; others come from locales/<lang>.json. "all" renders one video per language
scaleNoPixel scale of the video
themeNo
encodeNoAdvanced encoding, over quality: codec (h264, or h265 for smaller files), crf (0-51, lower is better; h264 18 looks lossless, 23 is the usual default) or bitrate (kbps, a target instead of a constant quality), preset (encoder speed: slower makes smaller files of the same quality), keyframe (seconds between keyframes), audio (the sound in kbps). The web version encodes by bitrate: a crf there becomes a bitrate and preset does not apply.
elementNoAn element or nested composition id: limit to its time
qualityNofinal: x264 medium, CRF 18; draft: x264 ultrafast, CRF 26, for a quick checkfinal
workersNo
backgroundNoReturn a job at once and render in the background (MCP and HTTP only); follow it with jobs, stop it with cancel
compositionYesComposition name (file in compositions/ without .json)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.2
    • addedInput schema / properties / element
      Added value: +{
      +  "description": "An element or nested composition id: limit to its time",
      +  "type": "string"
      +}
    • removedInput schema / properties / scene
      Removed value: -{
      -  "description": "Scene id: limit to that scene",
      -  "type": "string"
      -}
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the render is a snapshot of the composition at call time, later edits do not affect it, and `pin` can freeze it earlier. It also discloses that background=true returns a job immediately, to be followed with `jobs` and stopped with `cancel`, and that lang="all" emits one file per language with a documented naming pattern.

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?

Front-loads the core action and output format, then layers constraints in a logical order with no filler sentences. The heavy use of parentheticals makes it dense and slightly harder to scan, but every clause carries information.

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 a nested encode object and no output schema, it covers snapshot semantics, background job lifecycle, and output naming well. The main gap is that it never says what a synchronous render returns (file path, job id, or metadata), which matters given the absence of an output schema.

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 75%, so the baseline is 3, but the description adds concrete meaning: scale 0.5 is illustrated as 960×540 for a 1080p composition, and the lang="all" file-naming behavior is spelled out. It leaves `out`, `theme`, and `workers` unaddressed, which keeps it below 5.

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?

Opens with a specific verb and resource ("Render a composition, or one part of it ... to MP4: H.264") and states the output artifact and encoding properties. It also scopes the partial-render options (element time, from/to), so an agent can distinguish it from preview without opening either schema.

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

Usage Guidelines4/5

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

Explicitly routes quick inspections to the sibling preview tool and explains that quality "draft" exists "for a quick check," giving clear selection context. It stops short of a full when-not-to-use statement (e.g. when to prefer export_project or background rendering), so it is strong but not exhaustive.

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

Deploy Server

Other Tools