Skip to main content
Glama

Render Composition

clipform_render_composition
Destructive

Render a specialised video composition to MP4 or PNG for one question in a Clipform form (max 30s, attached to that question) - custom animated visuals that a video template can't provide, such as geography animations or designed motion graphics. Available composition names and their required input props schemas come from clipform_list_compositions.

Output formats: mp4 (H.264) or png (single frame). The completed render attaches itself to the node and returns the node and media_asset_id.

For multi-render builds (e.g. one clip per quiz question), pass everything in ONE call via items (max 10): all renders fire in parallel and you get one job ID each - then collect the results in a single clipform_check_render call with job_ids. Single render: pass compositionId/inputProps at the top level (wait: true blocks until the render is ready; wait: false returns a job ID).

Choosing a render tool: for a recognisable form/quiz beat (guess-the-city, this-or-that, mystery reveal, multiple choice, photo montage...) reach for a video template first (clipform_list_video_templates + clipform_render_video_template) - it is a one-call recipe. For a photo/clip montage, narrated or silent, use the slideshow template (pass audio_url to sync it to a voice track). Use clipform_render_composition only when neither fits and you need a custom layer stack. A render is a short clip (max 30s) for one question in a Clipform form, and it is not done until it is attached to that question. Pass form_id and node_id so the completed render attaches itself automatically and returns the node and media_asset_id - do not poll clipform_check_render to completion; fire the render and move on. It does not clip or edit existing footage, animate photos, lip-sync, or make standalone or long videos. In batch mode, set node_id per item (see items) and form_id once at the top level.

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": {
      "form_id": "<form_id>",
      "context": "<context>"
    },
    "name": "clipform_render_composition"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoSingle render only: true (default) blocks until the render is ready and attached to the node; false returns a job ID for clipform_check_render. Batch items always run fire-and-poll.
itemsNoBatch mode: multiple renders in one call. All fire in parallel; returns one job ID per item - collect with clipform_check_render (job_ids). Use this whenever rendering more than one clip.
contextYesDescribe the user's underlying goal in one sentence - not the tool you're calling.
form_idYesThe form UUID - required.
node_idNoSingle render only (required for a single render): form node to attach this render to automatically once it completes. Requires form_id. For batch mode, set node_id per item instead.
captionsNoSingle render only: word-level captions from clipform_generate_tts, carried onto the attached media asset. Only used when node_id is set. For batch mode, set captions per item instead.
inputPropsNoSingle render: props object matching the composition's schema from clipform_list_compositions. Validated STRICTLY - unknown or missing props fail with the schema in the error, nothing renders silently with defaults. For map compositions (Map), wide shots (camera.zoom < 9) may round lat/lng to 1 decimal place to improve cache hit rates; close shots and pin drops should keep full precision — the pin lands exactly on `target`.
caption_refNoSingle render only: caption_ref from clipform_generate_tts - an opaque handle that attaches that TTS run's word-level captions to the media asset, resolved server-side. Preferred over captions. Only used when node_id is set. For batch mode, set caption_ref per item instead.
outputFormatNoSingle render: output format (default: mp4)mp4
compositionIdNoSingle render: the composition ID. Call clipform_list_compositions to see available options (e.g. 'Slideshow', 'Map', 'Grid'). Use items instead for multiple renders.

Output Schema

NameRequiredDescriptionDefault
jobsYesOne entry per render (single or batch)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / form_id / description
      Previous value: -"The form UUID - required when node_id is set (single render) or any item sets node_id (batch)."New value: +"The form UUID - required."
    • changedInput schema / properties / items / items / required
      Previous value: -[
      -  "compositionId"
      -]New value: +[
      +  "compositionId",
      +  "node_id"
      +]
    • changedInput schema / properties / node_id / description
      Previous value: -"Single render only: form node to attach this render to automatically once it completes. Requires form_id. For batch mode, set node_id per item instead."New value: +"Single render only (required for a single render): form node to attach this render to automatically once it completes. Requires form_id. For batch mode, set node_id per item instead."
    • changedInput schema / properties / wait / description
      Previous value: -"Single render only: true (default) blocks until the render is ready and returns its URL; false returns a job ID for clipform_check_render. Batch items always run fire-and-poll."New value: +"Single render only: true (default) blocks until the render is ready and attached to the node; false returns a job ID for clipform_check_render. Batch items always run fire-and-poll."
    • changedInput schema / required
      Previous value: -[
      -  "context"
      -]New value: +[
      +  "form_id",
      +  "context"
      +]
    • changedOutput schema / properties / jobs / items / properties / public_url / description
      Previous value: -"Present when status is 'complete' - attach via upload_media_asset then attach_node_media (fit_media: true), unless node_id was set (auto-attached)"New value: +"Present when status is 'complete' and the render was not attached to a node, or alongside attach_error so the attach can be retried."
  2. Changed10 schema fields changed
    • removedInput schema / properties / captions / items / $ref
      Removed value: -"#/properties/items/items/properties/captions/items"
    • addedInput schema / properties / captions / items / properties
      Added value: +{
      +  "end": {
      +    "description": "Segment end time in seconds",
      +    "type": "number"
      +  },
      +  "start": {
      +    "description": "Segment start time in seconds",
      +    "type": "number"
      +  },
      +  "text": {
      +    "description": "Full segment text",
      +    "type": "string"
      +  },
      +  "words": {
      +    "description": "Per-word timestamps within the segment. Required - copy the full array from clipform_generate_tts verbatim.",
      +    "items": {
      +      "properties": {
      +        "end": {
      +          "type": "number"
      +        },
      +        "start": {
      +          "type": "number"
      +        },
      +        "word": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "word",
      +        "start",
      +        "end"
      +      ],
      +      "type": "object"
      +    },
      +    "minItems": 1,
      +    "type": "array"
      +  }
      +}
    • addedInput schema / properties / captions / items / required
      Added value: +[
      +  "start",
      +  "end",
      +  "text",
      +  "words"
      +]
    • addedInput schema / properties / captions / items / type
      Added value: +"object"
    • addedInput schema / properties / form_id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • addedInput schema / properties / inputProps / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / items / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / items / items / properties / captions / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / items / items / properties / captions / items / properties / words / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / items / items / properties / inputProps / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / caption_ref
      Added value: +{
      +  "description": "Single render only: caption_ref from clipform_generate_tts - an opaque handle that attaches that TTS run's word-level captions to the media asset, resolved server-side. Preferred over captions. Only used when node_id is set. For batch mode, set caption_ref per item instead.",
      +  "type": "string"
      +}
    • addedInput schema / properties / items / items / properties / caption_ref
      Added value: +{
      +  "description": "caption_ref from clipform_generate_tts - an opaque handle that attaches that TTS run's word-level captions to the media asset, resolved server-side. Preferred over captions. Only used when node_id is set.",
      +  "type": "string"
      +}
  4. Changed3 schema fields changed
    • changedInput schema / properties / items / items / properties / captions / items / properties / words / description
      Previous value: -"Per-word timestamps within the segment"New value: +"Per-word timestamps within the segment. Required - copy the full array from clipform_generate_tts verbatim."
    • addedInput schema / properties / items / items / properties / captions / items / properties / words / minItems
      Added value: +1
    • changedInput schema / properties / items / items / properties / captions / items / required
      Previous value: -[
      -  "start",
      -  "end",
      -  "text"
      -]New value: +[
      +  "start",
      +  "end",
      +  "text",
      +  "words"
      +]
  5. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Describe the user's underlying goal in one sentence - not the tool you're calling.",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "context"
      +]
  6. Changed10 schema fields changed
    • addedInput schema / properties / captions
      Added value: +{
      +  "description": "Single render only: word-level captions from clipform_generate_tts, carried onto the attached media asset. Only used when node_id is set. For batch mode, set captions per item instead.",
      +  "items": {
      +    "$ref": "#/properties/items/items/properties/captions/items"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / form_id
      Added value: +{
      +  "description": "The form UUID - required when node_id is set (single render) or any item sets node_id (batch).",
      +  "format": "uuid",
      +  "type": "string"
      +}
    • addedInput schema / properties / items / items / properties / captions
      Added value: +{
      +  "description": "Word-level captions from clipform_generate_tts - carried onto the attached media asset. Only used when node_id is set.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "end": {
      +        "description": "Segment end time in seconds",
      +        "type": "number"
      +      },
      +      "start": {
      +        "description": "Segment start time in seconds",
      +        "type": "number"
      +      },
      +      "text": {
      +        "description": "Full segment text",
      +        "type": "string"
      +      },
      +      "words": {
      +        "description": "Per-word timestamps within the segment",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "end": {
      +              "type": "number"
      +            },
      +            "start": {
      +              "type": "number"
      +            },
      +            "word": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "word",
      +            "start",
      +            "end"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "start",
      +      "end",
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / items / items / properties / node_id
      Added value: +{
      +  "description": "Form node to attach this item's render to automatically once it completes. Requires the batch's top-level form_id.",
      +  "type": "string"
      +}
    • addedInput schema / properties / node_id
      Added value: +{
      +  "description": "Single render only: form node to attach this render to automatically once it completes. Requires form_id. For batch mode, set node_id per item instead.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / jobs / items / properties / attach_error
      Added value: +{
      +  "description": "Present when node_id was provided but auto-attach failed - the render itself still succeeded.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / jobs / items / properties / attached
      Added value: +{
      +  "description": "True when node_id was provided and the render was attached to the node automatically (present once the attach outcome is known).",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / jobs / items / properties / media_asset_id
      Added value: +{
      +  "description": "The workspace media asset created from this render, when attached.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / jobs / items / properties / public_url / description
      Previous value: -"Present when status is 'complete' - attach via upload_media_asset then attach_node_media (fit_media: true)"New value: +"Present when status is 'complete' - attach via upload_media_asset then attach_node_media (fit_media: true), unless node_id was set (auto-attached)"
    • addedOutput schema / properties / jobs / items / properties / republished
      Added value: +{
      +  "description": "True when the form was live and was republished to include this media.",
      +  "type": "boolean"
      +}
  7. Changed1 schema field changed
    • changedOutput schema / properties / jobs / items / properties / public_url / description
      Previous value: -"Present when status is 'complete' - attach via upload_node_media (fit_media: true)"New value: +"Present when status is 'complete' - attach via upload_media_asset then attach_node_media (fit_media: true)"
  8. Changed1 schema field changed
    • changedInput schema / properties / compositionId / description
      Previous value: -"Single render: the composition ID. Call clipform_list_compositions to see available options (e.g. 'MediaSlideshow', 'Map', 'Grid', 'ObscuredReveal', 'Timeline', 'NumberLine', 'CountdownRing', 'CountrySilhouetteClip', 'FlagReveal', 'ColorCards', 'TitleCard', 'ParallaxImage', 'TextReveal', 'EmojiPuzzle', 'BeforeAfter'). Use items instead for multiple renders."New value: +"Single render: the composition ID. Call clipform_list_compositions to see available options (e.g. 'Slideshow', 'Map', 'Grid'). Use items instead for multiple renders."
  9. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "jobs": {
      +      "description": "One entry per render (single or batch)",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "composition_id": {
      +            "type": "string"
      +          },
      +          "job_id": {
      +            "description": "Present when status is 'rendering' - pass to check_render",
      +            "type": "string"
      +          },
      +          "output_format": {
      +            "type": "string"
      +          },
      +          "public_url": {
      +            "description": "Present when status is 'complete' - attach via upload_node_media (fit_media: true)",
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "rendering",
      +              "complete"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "status"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "jobs"
      +  ],
      +  "type": "object"
      +}
  10. Changed1 schema field changed
    • changedInput schema / properties / compositionId / description
      Previous value: -"Single render: the composition ID. Call clipform_list_compositions to see available options (e.g. 'MediaSlideshow', 'Map', 'Grid', 'GridList', 'ObscuredReveal', 'Timeline', 'NumberLine', 'CountdownRing', 'CountrySilhouetteClip', 'FlagReveal', 'ColorCards', 'TitleCard', 'ParallaxImage', 'TextReveal', 'EmojiPuzzle', 'BeforeAfter'). Use items instead for multiple renders."New value: +"Single render: the composition ID. Call clipform_list_compositions to see available options (e.g. 'MediaSlideshow', 'Map', 'Grid', 'ObscuredReveal', 'Timeline', 'NumberLine', 'CountdownRing', 'CountrySilhouetteClip', 'FlagReveal', 'ColorCards', 'TitleCard', 'ParallaxImage', 'TextReveal', 'EmojiPuzzle', 'BeforeAfter'). Use items instead for multiple renders."
  11. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well past the annotations by disclosing that renders are capped at 30s, that the completed render attaches itself to the node and returns node + media_asset_id, that batch items fire in parallel returning one job ID each, and that the caller should NOT poll clipform_check_render to completion. It also warns that inputProps are 'validated STRICTLY' with nothing rendering silently with defaults, and notes the map-composition lat/lng rounding tradeoff for cache hits.

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?

Well front-loaded: what it is, output formats, then batch strategy, then tool selection, then exclusions. It loses a point for redundancy — the 'short clip (max 30s) for one question ... not done until it is attached' framing and the 'pass form_id and node_id so the render attaches itself' point are each restated from earlier sentences.

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

Completeness5/5

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

For a 10-parameter tool with nested batch items, annotations and an output schema, the description covers the remaining gaps: mode selection, attachment contract, parallelism/polling model, strict prop validation, and explicit out-of-scope capabilities. An agent can select and invoke it correctly without further reading.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds real semantic value on top: it explains the two calling modes (top-level compositionId/inputProps for a single render vs items for batch), that node_id goes per-item in batch while form_id is top-level once, and that wait:true blocks while wait:false returns a job ID. These are usage-level semantics the field descriptions alone do not assemble.

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?

States a specific verb and resource ('Render a specialised video composition to MP4 or PNG') plus the scope constraint ('for one question in a Clipform form, max 30s, attached to that question'). It explicitly carves out its niche against siblings: 'custom animated visuals that a video template can't provide, such as geography animations or designed motion graphics.'

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

Usage Guidelines5/5

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

Has a dedicated 'Choosing a render tool' paragraph that names the alternatives (clipform_list_video_templates + clipform_render_video_template, the slideshow template) and the exact condition selecting them, then says 'Use clipform_render_composition only when neither fits and you need a custom layer stack.' It also gives when-to-use guidance for batch mode ('Use this whenever rendering more than one clip') and negative scope ('does not clip or edit existing footage, animate photos, lip-sync').

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.