Skip to main content
Glama

apply_lut

Apply color grading LUTs to video clips in Adobe Premiere Pro to adjust color, contrast, and style for professional video editing workflows.

Instructions

Applies a Look-Up Table (LUT) to a clip for color grading.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clipIdYesThe ID of the clip
lutPathYesThe absolute path to the .cube or .3dl LUT file
intensityNoLUT intensity (0-100)

Implementation Reference

  • The handler function for the 'apply_lut' tool. It constructs an ExtendScript that adds a 'Lumetri Color' effect to the specified clip and sets the Input LUT path and intensity.
    private async applyLut(clipId: string, lutPath: string, intensity = 100): Promise<any> {
      const script = `
        try {
          var clip = app.project.getClipByID("${clipId}");
          if (!clip) {
            JSON.stringify({
              success: false,
              error: "Clip not found"
            });
            return;
          }
          
          var lutEffect = clip.addEffect("Lumetri Color");
          if (!lutEffect) {
            JSON.stringify({
              success: false,
              error: "Failed to add LUT effect"
            });
            return;
          }
          
          // Apply LUT file
          try {
            lutEffect.properties["Input LUT"].setValue("${lutPath}");
            lutEffect.properties["Input LUT Intensity"].setValue(${intensity / 100});
          } catch (e) {
            JSON.stringify({
              success: false,
              error: "Failed to apply LUT file: " + e.toString()
            });
            return;
          }
          
          JSON.stringify({
            success: true,
            message: "LUT applied successfully",
            clipId: "${clipId}",
            lutPath: "${lutPath}",
            intensity: ${intensity}
          });
        } catch (e) {
          JSON.stringify({
            success: false,
            error: e.toString()
          });
        }
      `;
      
      return await this.bridge.executeScript(script);
    }
  • Zod input schema defining parameters for the apply_lut tool: clipId (required), lutPath (required), intensity (optional).
    inputSchema: z.object({
      clipId: z.string().describe('The ID of the clip'),
      lutPath: z.string().describe('The absolute path to the .cube or .3dl LUT file'),
      intensity: z.number().optional().describe('LUT intensity (0-100)')
    })
  • Tool registration in getAvailableTools() array, including name, description, and input schema.
      name: 'apply_lut',
      description: 'Applies a Look-Up Table (LUT) to a clip for color grading.',
      inputSchema: z.object({
        clipId: z.string().describe('The ID of the clip'),
        lutPath: z.string().describe('The absolute path to the .cube or .3dl LUT file'),
        intensity: z.number().optional().describe('LUT intensity (0-100)')
      })
    },
  • Registration/dispatch in the executeTool method's switch statement, calling the applyLut handler.
    case 'apply_lut':
      return await this.applyLut(args.clipId, args.lutPath, args.intensity);
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. It states the action ('Applies a LUT') which implies a mutation, but doesn't describe whether this is reversible, what permissions are needed, how it affects the clip, or any rate limits. 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 front-loads the core action and context. There is zero waste, and every word earns its place by clearly stating what the tool does without unnecessary elaboration.

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 (applying LUTs for color grading, a mutation operation), lack of annotations, and no output schema, the description is incomplete. It doesn't cover behavioral aspects like effects on the clip, error handling, or return values, leaving significant gaps for an AI agent to understand the tool fully.

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, lutPath, intensity) with descriptions. The description adds no additional meaning beyond what's in the schema, such as explaining LUT file formats or intensity effects. Baseline 3 is appropriate when the schema handles parameter documentation effectively.

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 tool's purpose with a specific verb ('Applies') and resource ('Look-Up Table (LUT) to a clip'), and mentions the context ('color grading'). It distinguishes itself from generic color tools like 'color_correct' by specifying LUT application. However, it doesn't explicitly differentiate from 'apply_effect' which might be a sibling for similar operations.

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. It doesn't mention when to choose this over 'color_correct' or 'apply_effect', nor does it specify prerequisites like needing a clip ID or LUT file availability. Usage is implied through the action but lacks explicit context or exclusions.

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