Skip to main content
Glama

Add layer marker

add_layer_marker

Add a marker to an After Effects layer at a set time with comment, duration, chapter, URL, params, or label color to annotate moments and organize exports.

Instructions

Add a marker to a layer at comp 'time' (default current time) with comment, duration, chapter, URL and label color.

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

Input Schema

NameRequiredDescriptionDefault
urlNoWeb link URL.
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
timeNoTime: seconds (number), '12f' for frames, or 'HH:MM:SS:FF' timecode.
labelNoMarker color label index 0-16 (0 = none, 1 = red, 2 = yellow, 9 = green ...).
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
paramsNoCustom key/value parameters stored on the marker.
chapterNoChapter name (for exported video).
commentNoMarker comment text.
durationNoMarker duration in seconds (0 = single-frame marker).
frameTargetNoWeb link frame target.
cuePointNameNoFlash/cue point name.
protectedRegionNoProtected region (composition markers with duration; keeps timing when the comp is stretched in Essential Graphics).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only but non-destructive mutation on a local app (openWorldHint=false), so the safety bar is partly met by structured data. The description adds the default-time behavior but says nothing about what happens on an invalid layer, whether existing markers are affected, or what is returned after creation.

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 that names the resource, the placement time, and the payload fields with zero filler. Dense but readable; the only weakness is that the trailing field list grows long without grouping.

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?

With 12 parameters, one required, deep nesting ({id}/{name}/{index} layer object), and no output schema, the description covers the essential shape of the call but omits what a successful call returns and how errors on unresolvable layers surface. Adequate for invocation, incomplete for outcome prediction.

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 the schema already explains layer addressing, time formats, label indices, and the custom params map; the description merely enumerates a subset of fields (comment, duration, chapter, URL, label color). It adds no syntax or format detail beyond what the schema provides, so baseline 3 applies.

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+resource ("Add a marker to a layer") plus the anchoring time and the attributes it accepts, which is enough to distinguish it from marker-related siblings such as add_comp_marker (comp-level) and add_markers_bulk without opening a schema. It stops short of naming those alternatives explicitly.

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 only implied: the tool clearly targets layer markers rather than comp markers, and it notes time defaults to the current time, which helps an agent omit that parameter. There is no explicit when-to-use versus add_comp_marker or add_markers_bulk, and no stated prerequisites or exclusions.

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