Skip to main content
Glama

Music beats → markers

ae_beats

Measure beats and downbeats locally and write BAR/beat markers into an After Effects comp at the music layer's start offset, so you can cut or time hits accurately even when catalog BPMs are wrong.

Instructions

Measure beats and downbeats of a music file with beat_this (runs locally) and optionally write them as comp markers ('BAR n' on downbeats, 'beat' on the rest), offset by where the music layer starts. Use before cutting or timing hits on the beat — catalog BPMs can be wrong.

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": {
      "file": "<file>"
    },
    "name": "ae_beats"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoIf given, write markers into this comp.
fileYesAudio file (wav/mp3/m4a).
clearNoRemove earlier beat/BAR markers first (default true).
offsetNoComp time where the audio file's 0 s sits (default 0).
instanceNoAfter Effects instance to address for this call, when several are running (AfterFX.exe -m): an instance id (its AE_MCP_INSTANCE at launch, or the `name` given to instance.start) or the name of the project file it has open. Omit to use this server's default (AE_MCP_INSTANCE, else the single live instance). ae_context and ae_do instance.list show what is live.
onlyDownbeatsNoMarkers only on downbeats (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare destructiveHint=false, so the description carries most of the burden and does well: it discloses that beat_this runs locally (no network/upload), that markers are written into a comp with a fixed naming convention, and that positions are offset by where the music layer starts. The marker-clearing behavior is left to the schema rather than stated here, and the time cost of analysis is unmentioned, which keeps it from a 5.

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?

Two sentences, front-loaded with the core action, followed by the usage rationale. No filler, and the marker naming detail is packed into a parenthetical rather than a separate sentence.

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?

There is no output schema, and the description never says what the call returns (tempo/BPM, beat count, success or failure) even though measuring beats is the primary function. With six parameters and thin annotations, that omission leaves a real gap for an agent deciding whether to call it, though the write-side behavior is well covered.

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 documents comp, clear, offset, instance and onlyDownbeats. The description adds meaning only for offset (implied by 'offset by where the music layer starts') and for the marker text that the downbeat flag controls; the instance and clear parameters get no added context. Baseline 3 is appropriate.

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 and resource: measure beats and downbeats of a music file using beat_this, and optionally write comp markers. The parenthetical naming scheme ('BAR n' on downbeats, 'beat' on the rest) makes the output tangible. It stops short of explicitly contrasting with a sibling such as ae_sound_cues, so it lands at 4 rather than 5.

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?

'Use before cutting or timing hits on the beat' gives a clear triggering context, and 'catalog BPMs can be wrong' explains why this beats the alternative of trusting ae_catalog metadata. No explicit when-not condition or named alternative tool is given, so it is not a full 5.

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