Skip to main content
Glama

set_track_matte

Set a layer's track matte type to ALPHA, ALPHA_INVERTED, LUMA, LUMA_INVERTED, or NONE; the matte reads from the layer directly above, following After Effects' standard rule.

Instructions

Set track matte type on a layer. Reads from the layer ABOVE it (AE's standard rule). type: NONE | ALPHA | ALPHA_INVERTED | LUMA | LUMA_INVERTED.

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

Input Schema

NameRequiredDescriptionDefault
compNoComp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp.
typeYes
layerYesLayer: name (string), 1-based index (integer), or { id: N } for duplicate-name-safe stable-id addressing.
instanceNoTarget a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose one non-obvious rule the agent could not otherwise know — the matte source is the layer immediately above, not a parameter — which is genuine added value. It omits what happens to the source layer, whether NONE clears an existing matte, and whether undo/permissions apply.

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?

Three short sentences, front-loaded with the action, followed by the critical ordering rule and the value list. No filler or redundancy; every clause carries information.

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 a four-parameter mutation tool with no annotations and no output schema, the description covers purpose and the key ordering constraint but leaves response behavior, side effects on the matte source layer, and error conditions unstated. Adequate to call it, thin for calling it confidently.

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 75% and comp, layer, and instance are already documented in-schema; the type enum is fully enumerated in the schema, so repeating its values adds little. The one meaningful semantic contribution is that the `layer` parameter designates the layer being matted, with the source implicitly being the one above — helpful, but not developed further.

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: 'Set track matte type on a layer.' The resource (track matte) is distinct from every sibling, which all target different layer/comp properties, so an agent can select it without opening the schema. It stops short of naming any alternative, but the operation is unambiguous.

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 the resource name — use it when you want a layer masked by another layer — but there is no explicit when-to-use/when-not guidance, no mention of prerequisites (e.g. two adjacent layers must exist), and no referral to a sibling for related operations. The 'reads from the layer ABOVE it' line is the only contextual hook.

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