Skip to main content
Glama

adjust_audio_levels

Modify audio clip volume levels in Adobe Premiere Pro by setting specific decibel values to balance sound in video projects.

Instructions

Adjusts the volume (gain) of an audio clip on the timeline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clipIdYesThe ID of the audio clip to adjust
levelYesThe new audio level in decibels (dB). Can be positive or negative.

Implementation Reference

  • The handler function for 'adjust_audio_levels' tool. It constructs and executes an ExtendScript that finds the clip by ID, accesses its first audio component's Volume property, and sets it to the specified level in dB.
    private async adjustAudioLevels(clipId: string, level: number): Promise<any> {
      const script = `
        try {
          var clip = app.project.getClipByID("${clipId}");
          if (!clip) {
            JSON.stringify({
              success: false,
              error: "Clip not found"
            });
            return;
          }
          
          var audioComponent = clip.components[0];
          if (!audioComponent || !audioComponent.properties["Volume"]) {
            JSON.stringify({
              success: false,
              error: "Audio component not found or clip has no audio"
            });
            return;
          }
          
          var oldLevel = audioComponent.properties["Volume"].getValue();
          audioComponent.properties["Volume"].setValue(${level});
          
          JSON.stringify({
            success: true,
            message: "Audio level adjusted successfully",
            clipId: "${clipId}",
            oldLevel: oldLevel,
            newLevel: ${level}
          });
        } catch (e) {
          JSON.stringify({
            success: false,
            error: e.toString()
          });
        }
      `;
      
      return await this.bridge.executeScript(script);
    }
  • The input schema definition and tool metadata for 'adjust_audio_levels' in the getAvailableTools() method.
      name: 'adjust_audio_levels',
      description: 'Adjusts the volume (gain) of an audio clip on the timeline.',
      inputSchema: z.object({
        clipId: z.string().describe('The ID of the audio clip to adjust'),
        level: z.number().describe('The new audio level in decibels (dB). Can be positive or negative.')
      })
    },
  • The switch case in executeTool() that registers and dispatches to the adjustAudioLevels handler.
    case 'adjust_audio_levels':
      return await this.adjustAudioLevels(args.clipId, args.level);
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool adjusts volume but doesn't mention whether this is a destructive edit, requires specific permissions, has rate limits, or what happens if the clip doesn't exist. For a mutation tool with zero annotation coverage, this is a significant gap in transparency.

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?

The description is a single, efficient sentence that directly states the tool's function without unnecessary words. It is front-loaded with the core action and resource, making it easy to parse quickly, earning the highest score for conciseness.

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

Completeness2/5

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

Given the complexity of a mutation tool with no annotations and no output schema, the description is incomplete. It doesn't cover behavioral aspects like error handling, return values, or side effects, leaving gaps that could hinder an AI agent's ability to use the tool effectively in context.

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?

The description adds minimal semantics beyond the input schema, which has 100% coverage with clear descriptions for both parameters. It implies the tool adjusts volume but doesn't provide additional context like typical dB ranges or effects on audio quality. Given the high schema coverage, the baseline score of 3 is appropriate as the schema does the heavy lifting.

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 clearly states the action ('adjusts') and resource ('volume of an audio clip on the timeline'), making the purpose immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'mute_track' or 'speed_change', which could also affect audio levels in different ways, so it doesn't reach the highest score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'mute_track' for silencing or 'apply_effect' for other audio modifications. It lacks context about prerequisites, such as needing an existing audio clip, or exclusions, leaving the agent to infer usage from the tool name alone.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hetpatel-11/Adobe_Premiere_Pro_MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server