Skip to main content
Glama

Place SFX on events

ae_place_sfx

Place sound-effect files in an After Effects comp so each file's loudest sample lands exactly on its event time, importing files once, naming SFX layers, and optionally setting gain.

Instructions

Place sound-effect files in a comp so that each file's LOUDEST sample (measured with ffmpeg) lands exactly on its event time (start = at − peak). Imports each file once into an 'SFX' folder, names layers 'SFX ', sets Audio Levels in dB when given (0 = as recorded; leveled library files need no gain). One undo group.

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": {
      "comp": "<comp>",
      "items": "<items>"
    },
    "name": "ae_place_sfx"
  }
}

Input Schema

NameRequiredDescriptionDefault
compYes
itemsYes
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only carry destructiveHint=false, so the description does the heavy lifting and delivers: ffmpeg-based peak measurement, single import per file into an 'SFX' folder, deterministic layer naming 'SFX <label>', and a single undo group — a genuinely useful disclosure for a mutating edit. Gaps remain on idempotency (what happens on a second run, duplicate imports or name collisions) and on error behavior for missing files, which is why this is not 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?

Four dense sentences, front-loaded with the alignment contract and then the side effects (import, naming, gain, undo). Nothing is repeated from the schema verbatim and every clause carries operational information; 'start = at − peak' is a compact, unambiguous formalization.

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 3-parameter mutation tool with no output schema, the description covers the placement contract and side effects but omits what the tool reports back (layer names? counts? errors?) and how it resolves the polymorphic comp parameter. It is adequate to invoke correctly in the happy path, but not complete for an agent that needs to verify the result or handle failures.

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 only 33%, but the description compensates well: it explains that 'at' is the event time and the layer start is at minus peak, that gainDb=0 means as-recorded and leveled files need no gain, and that label drives the 'SFX <label>' layer name. The two big holes are undocumented in both places — comp accepts string or number (name vs. index is never explained) and instance is fully schema-described but unmentioned here.

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 and resource (place SFX files in a comp) plus the distinctive mechanism: each file's loudest ffmpeg-measured sample is aligned to the event time. That peak-alignment rule and the 'SFX' import folder make it unmistakable against siblings like ae_sound_cues or ae_beats.

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 mention that 'leveled library files need no gain' tells the agent when to omit gainDb, which is real guidance. But there is no explicit statement of when to choose this tool over alternatives such as ae_sound_cues, and no preconditions (file must exist on disk, comp must be open) are surfaced.

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