Skip to main content
Glama
After Effects MCP for Antigravity

After Effects MCP for Antigravity

by okaybhargav

split_or_trim_layer

Trims a layer by setting new in and out points or start time, or splits it into two at a specified time, useful for cutting footage to length in Adobe After Effects.

Instructions

Trims or splits a layer by adjusting inPoint, outPoint, startTime, or splitting at time.

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

Input Schema

NameRequiredDescriptionDefault
in_pointNoNew In Point in seconds.
out_pointNoNew Out Point in seconds.
layer_nameNoName of the layer.
start_timeNoNew Start Time in seconds.
layer_indexNo1-based index of the layer.
split_at_timeNoTime in seconds to split layer into two.
composition_idNoOptional composition item ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and discloses almost nothing beyond the operation name. It does not say that trimming/splitting mutates the layer's timeline (and is effectively destructive to existing in/out points), whether the change is undoable, what happens to keyframes or to the second layer created by a split, or what is returned.

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?

A single front-loaded sentence with no filler, and the primary action leads. It is arguably too terse for a seven-parameter, zero-required mutation tool, but no words are wasted.

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

Completeness2/5

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

For a mutation tool with no annotations, no output schema, and seven optional parameters, the description leaves critical call-shaping questions unanswered: which parameters are actually required for a trim versus a split, how conflicts between layer_name and layer_index are resolved, and what state the layer ends in. The 100% schema coverage documents individual fields but not the combinations needed to invoke this correctly.

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 description coverage is 100%, so all seven parameters are already documented with units and meaning, which sets the baseline at 3. The description only restates the same field names and does not explain the parameter relationships or precedence, such as which of in_point/out_point versus split_at_time must be supplied, or when layer_index should be used over layer_name.

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 names a specific verb pair and resource ('Trims or splits a layer') and enumerates the levers used (inPoint, outPoint, startTime, split at time), so an agent knows exactly what capability is offered. It does not distinguish itself from timeline/transform siblings like set_layer_transform, but the trim/split semantics are clear.

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

Usage Guidelines2/5

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

No guidance on when to trim versus split, or when to use this instead of other layer-editing tools. There are also no stated prerequisites (e.g., that a composition must be active, or that a layer must be targeted by index or name) despite every parameter being optional.

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