Skip to main content
Glama

preview

Read-onlyIdempotent

Render a small MP4 and frame strip for a selected composition range or asset, letting you inspect specific moments before final output.

Instructions

Quick headless look at part of a composition or an asset: a small, fast-encoded MP4 of the range plus a strip of frames across it (returned as an image). Pick the part with element (an element or nested composition), or from/to (seconds, "80f", "4b").

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoSeconds (2.5), frames ("75f") or beats ("4b", needs meta.bpm). Snapped to a whole frame.
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
assetNoAsset name (file in assets/ without .json)
scaleNoPixel scale: 0.5 renders 960×540 for a 1080p composition
stripNoFrames in the strip image (0 = none)
themeNo
videoNo
elementNoAn element or nested composition id: limit to its time
backgroundNoReturn a job at once and render in the background (MCP and HTTP only); follow it with jobs, stop it with cancel
compositionNoComposition 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

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds value by disclosing the output artifacts (MP4 and a frame-strip image) and that rendering is headless and fast-encoded; it is silent on render cost, latency and the background/follow-up workflow, which only the schema mentions.

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?

Two sentences, front-loaded with what the tool produces before the range-selection mechanics. Dense but readable; the parenthetical beat/frame notation slightly duplicates the schema without harm.

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

Completeness3/5

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

For an 11-parameter tool with zero required params, the description covers the core selection story and return artifacts adequately, leaning on the high schema coverage for the rest. It never states that you must supply a composition or asset, and ignores scale, strip, video and lang, leaving the agent to discover the main scoping requirement from the schema alone.

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 coverage is 82%, so the baseline is 3 and the schema already documents from/to formats, scale, strip, element and background. The description only reinforces the element-vs-from/to choice for selecting the range, adding little beyond structured fields and never explaining composition vs asset selection.

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?

Names a specific verb and resource: a quick headless look at part of a composition or an asset, and states what comes back (a small fast-encoded MP4 plus a strip of frames as an image). The only gap is that it never distinguishes itself from the sibling preview_component, so an agent must infer that difference.

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?

Explains how to pick the range — via element, or via from/to — which is useful selection guidance. It does not say when to prefer this over preview_component or the export tools, nor any exclusions or prerequisites, so usage is implied rather than explicit.

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