Skip to main content
Glama

run_extendscript

Executes raw ExtendScript (ES3) in Adobe Premiere Pro for tasks not covered by other tools, returning the value of the last expression.

Instructions

Run raw ExtendScript (ES3) in Premiere for anything the other tools cannot do. The value of the last expression is returned. Use app.project, qe (after app.enableQE()), etc.

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": "run_extendscript"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior2/5

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

With no annotations, the description must carry the full behavioral burden. It discloses that the last expression is returned and names APIs like app.project and qe, but it does not warn about executing arbitrary code, side effects, permissions, or irreversibility.

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 front-loaded and compact, giving the core behavior first and then return/API context in two short sentences. Every sentence adds useful information without waste.

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?

For a raw code-execution tool with no annotations and no output schema, the definition is incomplete. It covers the execution environment and return value, but it omits safety warnings, side-effect expectations, and failure behavior that an agent needs before invoking arbitrary code.

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 coverage is 0% for the single `code` string parameter, so the description must compensate. It clarifies that the code is raw ES3 ExtendScript and that the last expression is returned, but it does not add constraints, examples, or error-handling semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: run raw ExtendScript (ES3) in Premiere. It also distinguishes the tool as a fallback for anything the other tools cannot do, making its purpose clear without opening the schema.

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

Usage Guidelines4/5

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

It explicitly says to use this for anything the other tools cannot do, which gives a clear fallback condition. It does not name specific siblings or state when not to use it, but the usage context is clear.

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