Skip to main content
Glama

Audio info

get_audio_info
Read-only

Retrieve audio layer details in an After Effects comp: switch state, Audio Levels in dB with keyframes, in/out points, source file, duration, and applied effects. Read-only, for inspecting audio before analysis.

Instructions

List the layers with audio in a comp: audio switch, Audio Levels (dB, keyframes), in/out points, source file and duration, applied effects. Read-only. (ExtendScript cannot read sample rate; use audio_to_keyframes / detect_beats to analyse loudness.)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_audio_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
layersNoOnly these layers (default: every layer with audio).
withKeysNoInclude Audio Levels keyframes (default true, max 50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so 'Read-only' mostly restates structured data. The genuinely additive disclosure is the ExtendScript sample-rate limitation, which tells the agent a field it might expect is simply unavailable. Return-shape detail is carried by the field enumeration, though pagination/truncation behavior is not discussed.

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?

Front-loaded with the action and resource, then the returned fields, then the caveat — a sensible ordering. The field list is dense but every item is informative; the only near-redundancy is the 'Read-only' fragment that annotations already cover.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description serves as the return-value specification by naming the fields produced, which is the right call for a 3-parameter read tool. The sample-rate caveat closes the biggest expectation gap. Minor omission: nothing about how large comps or keyframe limits affect the response beyond what the schema already notes.

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 comp, layers, and withKeys are each documented in the schema itself, including the 'selected'/'all' special value and the default of every audio layer. The description adds no syntax or format meaning beyond that, so the baseline of 3 applies.

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 ('List the layers with audio in a comp') and enumerates exactly what each entry contains: audio switch, Audio Levels in dB with keyframes, in/out points, source file/duration, applied effects. An agent can tell this apart from get_layer_info or get_comp_info without opening any schema.

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?

Explicitly routes the agent away for one case: 'ExtendScript cannot read sample rate; use audio_to_keyframes / detect_beats to analyse loudness.' That is a clear alternative with a triggering condition. It stops short of a full when/when-not map (e.g. no explicit contrast with get_layer_info for non-audio layer properties), so it is not a 5.

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