Skip to main content
Glama

speed_change

Adjust video clip playback speed in Adobe Premiere Pro by specifying speed multipliers and audio pitch preservation options.

Instructions

Changes the playback speed of a clip.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clipIdYesThe ID of the clip
speedYesSpeed multiplier (0.1 = 10% speed, 2.0 = 200% speed)
maintainAudioNoWhether to maintain audio pitch when changing speed

Implementation Reference

  • The core handler function for the 'speed_change' MCP tool. It generates and executes an ExtendScript that changes the playback speed of a clip in Adobe Premiere Pro, optionally preserving audio pitch by setting maintainAudioPitch.
    private async speedChange(clipId: string, speed: number, maintainAudio = true): Promise<any> {
      const script = `
        try {
          var clip = app.project.getClipByID("${clipId}");
          if (!clip) {
            JSON.stringify({
              success: false,
              error: "Clip not found"
            });
            return;
          }
          
          var oldSpeed = clip.speed;
          clip.speed = ${speed};
          
          if (${maintainAudio} && clip.hasAudio && clip.hasAudio()) {
            clip.maintainAudioPitch = true;
          }
          
          JSON.stringify({
            success: true,
            message: "Speed change applied successfully",
            clipId: "${clipId}",
            oldSpeed: oldSpeed,
            newSpeed: ${speed},
            maintainAudio: ${maintainAudio}
          });
        } catch (e) {
          JSON.stringify({
            success: false,
            error: e.toString()
          });
        }
      `;
      
      return await this.bridge.executeScript(script);
    }
  • Zod input schema definition for the 'speed_change' tool, defining parameters: clipId (string), speed (number), and optional maintainAudio (boolean). Used for validation and MCP tool discovery.
      name: 'speed_change',
      description: 'Changes the playback speed of a clip.',
      inputSchema: z.object({
        clipId: z.string().describe('The ID of the clip'),
        speed: z.number().describe('Speed multiplier (0.1 = 10% speed, 2.0 = 200% speed)'),
        maintainAudio: z.boolean().optional().describe('Whether to maintain audio pitch when changing speed')
      })
    }
  • Registration/dispatch point in executeTool switch statement that routes 'speed_change' tool calls to the speedChange handler method.
    case 'speed_change':
      return await this.speedChange(args.clipId, args.speed, args.maintainAudio);
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. While 'Changes' implies a mutation, it doesn't specify whether this operation is reversible, requires specific permissions, or has side effects (e.g., affecting linked clips or project state). For a mutation tool with zero annotation coverage, this leaves critical behavioral traits undocumented.

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, direct sentence that efficiently conveys the core function without unnecessary words. It's front-loaded with the essential action and resource, making it easy to parse. Every word earns its place, achieving optimal conciseness for this tool's purpose.

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 tool's mutation nature and lack of annotations or output schema, the description is incomplete. It doesn't address behavioral aspects like reversibility, permissions, or error conditions, nor does it hint at return values or side effects. For a tool that modifies clip playback, this leaves too many contextual gaps for reliable agent use.

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 all three parameters (clipId, speed, maintainAudio) with clear descriptions. The tool description adds no additional parameter semantics beyond what's in the schema, such as explaining speed ranges or audio pitch implications. With high schema coverage, the baseline of 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 clearly states the verb ('Changes') and resource ('playback speed of a clip'), making the purpose immediately understandable. It distinguishes this tool from siblings like 'trim_clip' or 'stabilize_clip' by focusing on speed adjustment rather than editing or stabilization. However, it doesn't explicitly differentiate from all possible alternatives, keeping it at a 4 rather than a 5.

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. There's no mention of prerequisites (e.g., needing an open project or specific clip state), nor does it suggest when not to use it (e.g., for audio-only adjustments). With many sibling tools for clip manipulation, this lack of contextual guidance is a significant gap.

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