Skip to main content
Glama

Layer timing

set_layer_timing

Control layer timing in After Effects by setting in/out points, start time, and time stretch, including reversal.

Instructions

Set in point, out point, start time (where the source's frame 0 sits) and/or time stretch (%, 100 = normal, 200 = half speed, negative = reversed) of layers. Order applied: stretch, startTime, inPoint, outPoint.

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": "set_layer_timing"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
layersNoLayers: array of layer refs, or 'selected' (default) or 'all'.
inPointNoTime: seconds (number), '12f' for frames, or 'HH:MM:SS:FF' timecode.
stretchNoTime stretch in percent.
outPointNoTime: seconds (number), '12f' for frames, or 'HH:MM:SS:FF' timecode.
startTimeNoTime: seconds (number), '12f' for frames, or 'HH:MM:SS:FF' timecode.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already establish that this is a non-read-only, non-destructive, closed-world mutation. The description adds useful behavior beyond that by defining stretch semantics and the order in which stretch, startTime, inPoint, and outPoint are applied. It still does not discuss side effects on keyframes or permissions, but the core behavioral contract is clearer than the annotations alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two compact sentences with no wasted wording. It front-loads the tool's action and then adds only the semantic details needed to interpret stretch and assignment order.

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 six-parameter optional mutation with full schema coverage and annotations, the description covers the key timing semantics and application order. It is not fully complete because it omits explicit alternative-tool guidance and side-effect details, but nothing critical for invoking the parameters is missing.

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 description coverage is 100%, so the schema already documents all six parameters thoroughly. The description still adds meaning beyond the schema by explaining that startTime is where the source's frame 0 sits, giving stretch examples such as 100 = normal, 200 = half speed, negative = reversed, and stating the application order.

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?

The description states a specific verb and resource: set in point, out point, start time, and/or time stretch of layers. That is clear enough for an agent to identify the tool, but it does not explicitly distinguish it from timing-related siblings such as reverse_layer_time or scale_keyframe_timing.

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?

Usage is implied by saying it sets layer timing fields, and the 'and/or' phrasing indicates partial updates are allowed. However, there is no explicit when-to-use guidance, no exclusions, and no routing to alternatives for adjacent timing operations.

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