Skip to main content
Glama

Render animation to MP4

render_animation
Idempotent

Render a frame range to an H.264 MP4. engine=cycles_cpu (default) is photoreal; lit_preview (EEVEE) keeps materials and lights at ~10x less cost and is the right choice for reviewing motion and timing; preview_fast is shape-only. Animate first: keyframe cameras/objects via scene_apply animation.* operations, then render from that revision. Imported GLB/glTF skeletal and morph clips play too: the first clip is active after asset_import, its keys start at frame 0 and are timed at the scene frame rate in effect at import (24 fps by default), and animation.list_clips / animation.set_clip read and switch clips. Pass that same fps for real-time playback. One job renders up to 600 frames; for longer sequences fire parallel jobs over contiguous frame ranges and concatenate the MP4 segments (identical encoder settings make them concat-safe). The MP4 becomes an immutable artifact (download via artifact_get). Optional audioTracks mix owned audio_wav artifacts into an AAC soundtrack with startSeconds relative to this output segment, sourceOffsetSeconds, gainDb and looping. Inputs must belong to this project/deployment; PCM16 44.1 kHz mono/stereo only. Clipping is rejected; lower gainDb. Actual output streams/timing are verified. Returns a durable job handle.

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": {
      "projectId": "<projectId>",
      "frameStart": "<frameStart>",
      "frameEnd": "<frameEnd>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "render_animation"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNo
widthNo
engineNocycles_cpu
heightNo
samplesNo
cameraIdNo
frameEndYes
projectIdYesStable project ID returned by project_create or projects_list.
frameStartYes
revisionIdNo"HEAD" (default) uses the project's current headHEAD
audioTracksNo
idempotencyKeyYesStable caller-chosen key for safe retries of this same request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / audioTracks
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "artifactId": {
      +        "pattern": "^art_[0-9a-z]{10,40}$",
      +        "type": "string"
      +      },
      +      "gainDb": {
      +        "default": 0,
      +        "maximum": 12,
      +        "minimum": -60,
      +        "type": "number"
      +      },
      +      "loop": {
      +        "default": false,
      +        "type": "boolean"
      +      },
      +      "sourceOffsetSeconds": {
      +        "default": 0,
      +        "maximum": 120,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "startSeconds": {
      +        "default": 0,
      +        "maximum": 100,
      +        "minimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "artifactId"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 8,
      +  "minItems": 1,
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly=false, idempotent=true, destructive=false, openWorld=false), and the description adds substantial context beyond them: a hard 600-frame per-job limit with a concat-safe workaround, an immutable artifact downloadable via artifact_get, verification of actual output streams/timing, and a returned durable job handle. It also discloses audio constraints (project/deployment ownership, PCM16 44.1 kHz mono/stereo, clipping rejected, lower gainDb) that an agent could not otherwise predict.

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-loaded with the core action and output format, then ordered by decision relevance: engine choice, animation prerequisite, scale limits, artifact/audio details. Dense but nearly every sentence carries actionable information. The imported-GLB clip/fps passage is the longest aside and is slightly more detailed than most callers need.

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 output schema and 25% schema coverage, the description covers the decisions that matter: engine trade-offs, frame limits, revision targeting, audio mixing constraints, and the returned job handle. It is only marginally short on the rendering-quality parameters (width, height, samples, cameraId), which an agent could plausibly misconfigure without further guidance.

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?

With only 25% schema coverage across 12 parameters, the description carries real weight and mostly delivers: it defines all three engine enum values behaviorally, explains fps in terms of the scene frame rate at import and real-time playback, clarifies revisionId semantics via "render from that revision," and describes each audioTracks field (startSeconds relative to the segment, sourceOffsetSeconds, gainDb, looping). It leaves width, height, samples, cameraId, and the frameStart/frameEnd pairing unexplained, which is why it is not a 5.

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?

Opens with a specific verb, resource, and output format: "Render a frame range to an H.264 MP4." That is unambiguous about what the tool produces. It does not explicitly differentiate itself from siblings like render_create or render_turntable, so an agent must infer the boundary.

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?

Gives concrete selection guidance between engines: lit_preview is "the right choice for reviewing motion and timing," preview_fast is "shape-only," cycles_cpu is photoreal. It also states a prerequisite ordering (keyframe via scene_apply animation.* operations first, then render from that revision) and a scaling rule (split sequences over 600 frames into parallel contiguous jobs). The one gap is that it never names the sibling render tools as the alternative to use for different rendering needs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources