Skip to main content
Glama

render

Turn Lua video scripts into MP4 files or PNG sequences with audio mixes, scene chapters, batch rows, and selectable codecs.

Instructions

The video to a file (.mp4 with the audio mix and a chapter per scene, or a directory of PNGs).

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

Input Schema

NameRequiredDescriptionDefault
qpNoquantizer, 1 best .. 51, the same scale for every codec (default: 23; with --draft 32)
nowNothe wall clock at the video's first frame (Lua: f.now, seconds since 1970): an RFC 3339 time with its zone (2026-11-02T14:05:00Z, 2026-11-02T15:05:00+01:00) or seconds since 1970; preview --live runs on the system clock instead (default: 0, 1970-01-01T00:00:00Z)
setNoscript arguments (Lua: arg.K, a string) that also set props.K (a number when it looks like one); they win over a batch row, which wins over the props file
rowsNothe batch rows to render, 1-based and inclusive: 2, 1..3, 2.., ..2
batchNoa .json array or .csv of rows: one video per row, the row as props; a failing row is reported, the others still render
codecNothe video codec: h264 and h265 through the system's encoders, av1 through oicut's own, on every machine (default: h264)
draftNohalf size, fastest encoding
mediaNofonts, images and sounds (default: media/ beside the script)
propsNoa JSON object the script reads as the table props (props.title, ...)
rangeNoframes a..b (end exclusive), a.., ..b, all, or a scene name; times like 3.2s, 1:05.5, 50%, Intro@1.5s, a cue: drop, drop@0.5s (default: all)
scaleNooutput resolution factor, e.g. 0.5 for half resolution (rounded to an even size)
nativeNooicut's native encoder instead of the system's (VideoToolbox, Vulkan Video, Media Foundation, libavcodec); only in a build with -define:OICUT_PATENTED=true, refused otherwise
outputNothe .mp4, or a directory for PNGs; with a batch, a name template with {field} from the row and {index}, the row number (default: out.mp4; with a batch, out/{index}.mp4)
scriptYesthe video script (.lua)
slicesNoH.264 slices oicut's native encoder codes in parallel; the file depends on it (more: faster, slightly larger), never on the machine; the system's encoders ignore it; only in a build with the native encoder, refused otherwise (default: 4)
softwareNodraw on the CPU instead of the GPU

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.5/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 disclosure burden, and it delivers only the output shapes. It says nothing about this being a heavy long-running render, about GPU vs CPU behavior, about per-row failure handling in batch mode, or about the many options that are refused in builds without the native encoder — all of which materially affect how an agent should call it.

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?

It is short with no filler, but the brevity comes from being a sentence fragment rather than from disciplined editing. The output detail is packed into parentheses while the core action is never stated, so it is under-specified rather than concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter rendering tool with nested objects, no annotations, and no output schema, a single fragment is far from complete. The description never states the primary action, the fact that rendering is expensive and slow, or any safety/behavior notes that would otherwise come from annotations.

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% and the 16 parameters are richly documented in-schema (qp, range syntax, batch templates, set/rows precedence), so the schema does the heavy lifting. The description adds only a thin gloss on the output forms, which loosely maps to the 'output' parameter. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (a video) and the outputs (an .mp4 with the audio mix and a chapter per scene, or a directory of PNGs), so the agent can infer that this produces a video artifact. But it is a verbless noun phrase — it never says 'render' or 'write' — and it does nothing to separate this from siblings such as preview, snapshot, frame, or strip.

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?

There is no when-to-use guidance: nothing says whether to preview first, when to choose this over preview or snapshot, or what prerequisites exist (a script path, media directory). The only usage hint is implicit in the output forms. An agent must infer everything about selection.

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