Skip to main content
Glama

ae_audio

Analyze audio beats, map energy to keyframes, and import SRT/LRC subtitles into After Effects to automate rhythm-synced animation and captions.

Instructions

Audio rhythm & subtitle automation powered by ffmpeg + FFT + SRT/LRC parsing. Actions: list_audio_layers, analyze_beats (multi-band low/mid/high onset & BPM detection + optional marker placement), envelope_keyframes (sparse audio energy keyframes to Slider Control or target property), import_subtitles (.srt / .lrc to Hold-keyframed Text Layer, split layers, or markers).

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": {
      "action": "<action>"
    },
    "name": "ae_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNoComp fps fallback for envelope_keyframes (auto-queried if omitted).
bandNoFrequency band focus: low(20-250Hz), mid(250-2500Hz), high(2.5-16kHz), full, or all.
compNoComp name or '@id:N' (defaults to active comp).
fontNo
labelNo
layerNoTarget audio/marker/control layer.
actionYes
formatNo
contentNoInline .srt or .lrc subtitle text.
durationNoDecode slice duration in seconds.
filePathNoPath to .srt or .lrc subtitle file.
fontSizeNo
maxValueNoMaximum mapped output value (default 100).
minValueNoMinimum mapped output value (default 0).
positionNo
propertyNoOptional direct property on 'layer' instead of creating Slider Control.
audioPathNoAudio/video file path (auto-resolved from comp audio layer if omitted).
fillColorNo
layerNameNo
startTimeNoDecode slice start time in seconds within audio file.
stepFramesNoFrame stride for envelope keyframes (default 2).
timeOffsetNoTimeline start offset in seconds (auto-aligned to audio layer startTime when resolved from comp).
applyToCompNoApply generated envelope keyframes to AE comp (default true).
sensitivityNoOnset threshold sensitivity (default 0.5).
applyMarkersNoWrite detected beats directly to comp/layer markers (default false).
subtitleModeNoHow subtitles are imported (default 'text_layer').
clearExistingNoClear existing markers or keyframes before writing.
justificationNo
controllerNameNoController null layer name when applying envelope sliders (default CTRL_Audio_Envelope).
minIntervalSecNoMinimum seconds between detected beats in same band (default 0.15).
simplifyThresholdNoSkip near-flat intermediate samples within normalized delta.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It does add real value by disclosing the external ffmpeg/FFT dependency and the output shapes (Hold-keyframed text layers, sparse keyframes to Slider Control, markers). It says nothing about destructive effects of clearExisting, permissions, or failure modes when audio resolution fails, leaving meaningful gaps for a tool that mutates comps, layers, and markers.

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?

The description is front-loaded with the domain and then lists actions in a single structured sentence with parenthetical detail, so an agent can scan for the action it needs. It is dense but nearly waste-free. Minor cost: the sentence is long and the parentheticals compress important distinctions.

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-action, 31-parameter tool with no output schema and no annotations, the description covers what each action does but not which parameters belong to which action, nor external prerequisites. An agent can pick an action but would have to consult the schema to assemble a correct call. Adequate but with clear gaps given the tool's complexity.

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 coverage is 71%, so most parameters are documented in the schema itself, and the description's action glosses explain the intent behind the main clusters (sensitivity/minIntervalSec for beat detection, stepFrames/simplifyThreshold for envelope keyframes, subtitleMode/format for import). It does not group the 31 parameters by action, which would have added real meaning beyond the schema. Slightly above the baseline given the coverage level.

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 resource (audio rhythm and subtitle automation) and enumerates all four actions, each with a short gloss of what it produces (onset/BPM detection, sparse energy keyframes, subtitle import modes). This is far more than a restatement of the name. It stops short of 5 because it never contrasts itself with overlapping siblings such as ae_marker or ae_text, which also write markers and text layers.

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?

The action names are self-explanatory enough to imply when each is used, and the parenthetical glosses hint at outcomes (e.g. 'optional marker placement'). However, there is no explicit guidance on when to choose this tool over ae_marker/ae_keyframe/ae_text, and no mention of prerequisites such as requiring an ffmpeg binary. Usage is implied rather than stated.

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