Skip to main content
Glama

Set comp duration (layer-aware)

set_comp_duration

Changes a composition's duration and, when lengthening, extends layers and work areas that ended at the old end; recursive mode also lengthens short nested precomps.

Instructions

Change a composition's duration. When lengthening, layers that ended at the old end are extended to the new end (extendLayers, default true) and a work area that ended at the old end follows. recursive=true also lengthens nested precomps that are too short (and their layers). Footage layers can only be extended up to their source length; those are reported in notExtended.

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": {
      "duration": "<duration>"
    },
    "name": "set_comp_duration"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
durationYesNew duration: seconds, 'Nf' frames or timecode.
recursiveNoAlso lengthen nested precomps as needed (default false).
extendLayersNoExtend layers ending at the old end (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false) by disclosing the concrete side effects of mutation: layers ending at the old end are extended, the work area follows, recursive lengthening cascades into nested precomps and their layers, and footage layers cap at source length with omissions surfaced in notExtended. This is exactly the behavioral context annotations cannot carry, and nothing contradicts the annotations.

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?

Three tight sentences, front-loaded with the core action before conditional behavior. Dense but every clause carries information; no filler or repetition of the title.

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 mutating four-parameter tool with no output schema, it covers side effects, defaults, and even the notExtended report field. The one gap is shortening: it says what happens 'when lengthening' but is silent on whether layers or the work area are trimmed when the duration is reduced.

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 100%, so baseline is 3, but the description adds real meaning: it explains the default-on behavior of extendLayers, what recursive actually cascades to, and the footage-length ceiling that produces notExtended entries. Only the comp and duration parameter formats are left entirely to the schema.

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?

States a specific verb and resource ('Change a composition's duration') and the parenthetical 'layer-aware' plus the side-effect discussion signal this is not a plain numeric set. It never names a sibling such as resize_comp or trim_comp_to_work_area, so differentiation is by implication rather than explicit routing.

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?

The description explains in detail what happens when lengthening, including the extendLayers and recursive toggles, which implicitly tells the agent when those flags matter. However, it gives no explicit when-to-use/when-not-to-use guidance and does not point to any alternative tool for cases this one does not cover.

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