Skip to main content
Glama

add_transition

Add transitions between video clips in Adobe Premiere Pro to create smooth scene changes and professional edits.

Instructions

Adds a transition (e.g., cross dissolve) between two adjacent clips on the timeline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clipId1YesThe ID of the first clip (outgoing)
clipId2YesThe ID of the second clip (incoming)
transitionNameYesThe name of the transition to add (e.g., "Cross Dissolve")
durationYesThe duration of the transition in seconds

Implementation Reference

  • Registers the 'add_transition' tool in getAvailableTools() with name, description, and Zod input schema for MCP compatibility.
    {
      name: 'add_transition',
      description: 'Adds a transition (e.g., cross dissolve) between two adjacent clips on the timeline.',
      inputSchema: z.object({
        clipId1: z.string().describe('The ID of the first clip (outgoing)'),
        clipId2: z.string().describe('The ID of the second clip (incoming)'),
        transitionName: z.string().describe('The name of the transition to add (e.g., "Cross Dissolve")'),
        duration: z.number().describe('The duration of the transition in seconds')
      })
    },
  • Dispatches 'add_transition' tool calls to the private addTransition handler method in executeTool switch statement.
    case 'add_transition':
      return await this.addTransition(args.clipId1, args.clipId2, args.transitionName, args.duration);
  • Core implementation of the 'add_transition' tool: constructs ExtendScript to retrieve clips by ID, add transition between them on their track, and returns success/error via PremiereProBridge.
    private async addTransition(clipId1: string, clipId2: string, transitionName: string, duration: number): Promise<any> {
      const script = `
        try {
          var clip1 = app.project.getClipByID("${clipId1}");
          var clip2 = app.project.getClipByID("${clipId2}");
          
          if (!clip1 || !clip2) {
            JSON.stringify({
              success: false,
              error: "One or both clips not found"
            });
            return;
          }
          
          var track = clip1.getTrack();
          var transition = track.addTransition("${transitionName}", clip1, clip2, ${duration});
          
          if (!transition) {
            JSON.stringify({
              success: false,
              error: "Failed to add transition"
            });
            return;
          }
          
          JSON.stringify({
            success: true,
            message: "Transition added successfully",
            transitionName: "${transitionName}",
            duration: ${duration},
            clip1Id: "${clipId1}",
            clip2Id: "${clipId2}",
            transitionId: transition.nodeId
          });
        } catch (e) {
          JSON.stringify({
            success: false,
            error: e.toString()
          });
        }
      `;
      
      return await this.bridge.executeScript(script);
    }
  • Zod schema defining input parameters for the 'add_transition' tool: clip IDs, transition name, and duration.
    inputSchema: z.object({
      clipId1: z.string().describe('The ID of the first clip (outgoing)'),
      clipId2: z.string().describe('The ID of the second clip (incoming)'),
      transitionName: z.string().describe('The name of the transition to add (e.g., "Cross Dissolve")'),
      duration: z.number().describe('The duration of the transition in seconds')
    })
  • src/index.ts:74-81 (registration)
    MCP server handler for listing tools, which exposes the 'add_transition' tool from PremiereProTools to the MCP protocol.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => {
      const tools = this.tools.getAvailableTools().map((tool) => ({
        name: tool.name,
        description: tool.description,
        inputSchema: zodToJsonSchema(tool.inputSchema, { $refStrategy: 'none' })
      }));
      return { tools };
    });
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states the tool adds a transition but doesn't disclose behavioral traits like whether it modifies the timeline in-place, requires specific permissions, has side effects (e.g., adjusting clip durations), or returns any confirmation. This is inadequate for a mutation tool with zero annotation coverage.

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 front-loads the core purpose with an embedded example. Every word earns its place, and there's no wasted text or redundancy.

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 complexity (a mutation with 4 required parameters), lack of annotations, and no output schema, the description is incomplete. It doesn't cover behavioral aspects, usage context, or return values, leaving significant gaps for an AI agent to understand how to invoke it correctly.

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 four parameters (clipId1, clipId2, transitionName, duration) with clear descriptions. The description adds no additional meaning beyond what the schema provides, such as explaining adjacency requirements or valid transition names. Baseline 3 is appropriate when 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 ('Adds a transition') and the target ('between two adjacent clips on the timeline'), with a helpful example ('e.g., cross dissolve'). It distinguishes from obvious non-siblings like 'add_text_overlay' but doesn't explicitly differentiate from 'add_transition_to_clip', which could be a similar tool.

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?

No guidance on when to use this tool versus alternatives is provided. It doesn't mention prerequisites (e.g., clips must exist, be adjacent), nor does it compare with 'add_transition_to_clip' or other editing tools in the sibling list.

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