Skip to main content
Glama

Track matte

set_track_matte

Applies a layer as another layer's track matte using alpha or luma channels, including inverted modes, or removes it. Use it to mask footage without manual matte layer setup.

Instructions

Use another layer as the track matte of a layer (alpha / alpha_inverted / luma / luma_inverted), or remove it (type 'none'). Uses AE 2023+ setTrackMatte (any layer can be the matte); on older AE the matte is moved directly above. The matte layer's video is switched off unless hideMatte=false.

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": {
      "layer": "<layer>"
    },
    "name": "set_track_matte"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
typeNoMatte type (default alpha).
layerYesThe layer that receives the matte.
matteNoThe layer used as matte (required unless type='none').
hideMatteNoTurn off the matte layer's video switch (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations (which only declare non-read-only, non-destructive, closed-world) by disclosing version-dependent mechanics: AE 2023+ uses setTrackMatte so any layer can serve as matte, while older AE physically moves the matte layer directly above the target — an important, non-obvious side effect on layer order. It also warns that the matte layer's video switch is turned off unless hideMatte=false, which is exactly the kind of hidden state change an agent needs before calling a mutation tool.

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?

Front-loads the primary action in the opening clause and packs the version and video-switch caveats into two further sentences with no filler. The parenthetical re-listing of the enum values is somewhat redundant with the schema but aids fast scanning.

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 five-parameter mutation tool with no output schema, the description covers the action, the removal case, version differences, and the visible side effect on the matte layer's video. It does not address failure modes (e.g. invalid layer reference, matte omitted when type is not 'none'), but everything needed to call it correctly is present.

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 100%, including enum values, defaults (type=alpha, hideMatte=true), and the 'required unless type=none' constraint, so the description is largely restating structured data. It adds marginal meaning — e.g. that any layer can be the matte under AE 2023+ — but contributes no extra detail on layer identifier formats or comp resolution.

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+resource pair: apply another layer as a track matte on a target layer, with the four matte modes enumerated, plus the inverse operation (remove via type 'none'). This is clearly distinguishable from siblings such as set_layer_switches or set_parent, which manipulate different layer properties.

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

Usage Guidelines4/5

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

Explicitly covers both directions of use — applying a matte (with mode selection) and removing one ('none') — so the agent knows how to accomplish both tasks with a single tool. It does not name an alternative sibling, but no sibling appears to overlap this behavior, so the gap is minor.

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