Skip to main content
Glama
Adobe After Effects + Premiere Pro MCP Server

Adobe After Effects + Premiere Pro MCP Server

by kai217

pr_run_script

Execute custom ExtendScript in the open Premiere Pro project and return the result, enabling scripted edits and project automation.

Instructions

Run any ExtendScript in the open Premiere Pro project and return its result (body of a function; return sends data back). Helpers: KAI.seq(name), KAI.item(nameOrNodeIdOrBinPath), KAI.bin("a/b"), KAI.walk(fn), KAI.seqInfo(seq), KAI.clipInfo(clip), KAI.sec(time), KAI.time(seconds), KAI.tc(seq, seconds). ARGS holds args. Premiere has no scripted undo groups: save a version first (pr_save mode "version") before big edits.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "<code>"
    },
    "name": "pr_run_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNo
codeYes
timeout_secNo
expected_projectNoProject guard: refuse to run unless the open .prproj path contains this text. Use it for every edit to a client project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It helpfully discloses that the code is a function body, that `return` sends data back, that ARGS holds arguments, and that Premiere lacks scripted undo groups. It does not explain timeout behavior, failure handling, or the safety implications of running arbitrary ExtendScript.

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?

The core purpose is front-loaded in the first sentence, followed by a compact helper list and an important undo warning. The helper enumeration is dense but relevant, and there is little wasted wording.

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

Completeness3/5

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

This is a complex, arbitrary-code-execution tool with no output schema and no annotations. The description covers helpers, return semantics, arguments, and the lack of undo groups, but it omits timeout behavior, error/failure semantics, and security considerations that an agent would need before invoking it.

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 only 25%, so the description should compensate. It adds meaning for `code` (function body, return semantics) and `args` (ARGS holds args), but it does not explain `timeout_sec`, and `expected_project` is documented only in the schema.

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 uses a specific verb ('Run') and resource ('any ExtendScript in the open Premiere Pro project') and states that the result is returned. It distinguishes itself from AE/IL scripting siblings by naming Premiere Pro, but it does not explicitly differentiate itself from pr_uxp_run or host_run.

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

Usage Guidelines3/5

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

It gives one useful usage condition: save a version first before big edits. However, it does not say when to use this tool versus pr_uxp_run, host_run, or the more specific pr_* siblings, leaving the agent to infer appropriate usage.

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