Skip to main content
Glama
Premiere Pro MCP Server

Premiere Pro MCP Server

Check Captions

check_captions
Read-onlyIdempotent

Validates SRT/VTT captions or cue lists against standards like Netflix, BBC, or social 9:16, flagging timing, line-length, overlap, shot-change, and safe-area issues without altering Premiere.

Instructions

Read-only caption QA against a published standard (default netflix_adult): reading speed, line length and count, durations, gaps, overlaps, line-break grammar, shot changes (cut_times) and an estimated safe area for 9:16. Input: file_path (.srt/.vtt), text, plan_path or cues (e.g. from read_sequence_captions). Local-only; never changes Premiere.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_captions"
  }
}

Input Schema

NameRequiredDescriptionDefault
cuesNoCues to check, for example the captions read back by read_sequence_captions or a plan's captions. At most 20000. Provide exactly one of file_path, text, plan_path or cues.
textNoSRT or WebVTT text (at most 5 MiB). Provide exactly one of file_path, text, plan_path or cues.
frameNoOutput frame in pixels, for the safe-area estimate.
formatNoFormat of text or file_path. Default: from the file extension, else WEBVTT header means vtt, else srt.
standardNoThe standard to check against: netflix_adult (default), netflix_kids, bbc, dcmp or social_9x16.
cut_timesNoShot changes in sequence seconds, from detect_scene_edits / scene_edit_detection or the sequence's edit points. Captions that straddle or sit close to one are flagged.
file_pathNoAbsolute path of a .srt or .vtt file inside approved_workspace_path (realpath-checked, at most 5 MiB). Requires approved_workspace_path. Provide exactly one of file_path, text, plan_path or cues.
plan_pathNoAbsolute path of a saved caption plan (.json written by plan_captions) inside approved_workspace_path. Requires approved_workspace_path. Without standard, the plan's own standard is used. Provide exactly one of file_path, text, plan_path or cues.
safe_areaNoEstimate each cue's text box and flag cues outside this safe area. Needs frame and font_size_px. Default when those are given: reels_9_16 for a portrait frame, landscape_16_9 otherwise. Estimates, not measurements.
frame_rateNoFrames per second of the sequence, for the gap checks. Without it (and without sequence_timebase_ticks) it is inferred from the cue times and the result says frame_rate_inferred.
max_issuesNoMost issues listed (default 200); counts always cover all of them and truncated says whether the list was cut.
font_size_pxNoCaption font size in pixels at that frame, for the safe-area estimate.
baseline_y_pctNoWhere the last line's baseline sits, percent of the frame height. Default: the bottom of the safe area's caption band.
idempotency_keyNoOptional client-chosen key (1-128 chars of A-Z a-z 0-9 . _ : -) for this intended edit. Pass a fresh key per edit and reuse it only when retrying that same edit, for example after a client-side timeout. A repeat with the same tool, key and arguments is not run again: while the first call is running it fails with IDEMPOTENCY_IN_PROGRESS (poll get_last_operations); after it finished it returns the original outcome marked replayed. A definite failure with nothing applied (receipt outcome not_applied) may be retried with the same key. Reusing a key with different arguments fails with IDEMPOTENCY_KEY_REUSED. Scoped to this MCP session (the stdio server process, or the HTTP server process when Streamable HTTP is stateless per request) and held in memory only (200 keys, 1 hour); it does not survive a restart or reconnect. Read-only invocations are never deduplicated.
char_width_ratioNoAverage glyph width as a share of the font size (default 0.55; about 0.45 for a condensed face, 0.65 for a wide one).
expected_cep_targetNoOptional reviewed CEP sequence/clip identity and exact tick ranges. Checked before every generated command; UXP refuses this CEP-only guard.
expected_project_pathNoOptional absolute saved-project path. Every generated CEP command refuses before its body when the active project differs or is unsaved. UXP commands refuse this CEP-only guard; local-only tools do not inspect Premiere. Omit to keep existing behavior.
approved_workspace_pathNoAbsolute path of an existing directory the caller approved for file access. transcript_path, plan_path and output paths must be inside it.
sequence_timebase_ticksNoPremiere ticks per frame of the sequence (the timebase from get_sequence_settings; 254016000000 ticks make a second). Converted to a frame rate with the common rates snapped (23.976, 25, 29.97 ...). An error when frame_rate is also given and differs.

Output Schema

NameRequiredDescriptionDefault
okYesWhether the tool completed successfully.
dataNoTool-specific result data when ok is true; on failure, diagnostic detail when the tool provides it.
toolYesThe registered MCP tool name.
errorNoFailure detail when ok is false.
receiptNoVersioned common mutation receipt; success never implies rendered verification.
idempotencyNoPresent when idempotency_key deduplicated this call: replayed is true when the original outcome was returned instead of running again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.31.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true and openWorldHint=false, so the safety bar is low. The description still adds useful context beyond them: that the tool is local-only, never touches Premiere, and that the safe-area output is an estimate rather than a measurement. Remaining behavior such as issue counts/truncation is left to the schema.

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?

Two sentences, front-loaded with the verb and scope, then the check list and input modes. The enumeration of checks is long but each item is informative about coverage. Slightly dense, but no filler sentences.

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

Completeness4/5

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

For a 19-parameter, nested-schema tool there is an output schema, so return values need not be explained. The description covers both what is checked and where input comes from, which is what an agent needs to call it. Minor gaps: no guidance on the overlap with check_caption_safe_zone and no hint about the idempotency/CEP guard parameters, though those are irrelevant for a read-only operation.

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 19 parameters including the mutually exclusive input sources and the default standard. The description only restates the input alternatives and the netflix_adult default, adding little meaning the schema does not already contain. Baseline 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?

States a specific verb and resource ('Read-only caption QA against a published standard') and enumerates exactly what is checked (reading speed, line length/count, durations, gaps, overlaps, line-break grammar, shot changes, safe area). An agent can tell this is a caption linting tool without opening the schema. It does not differentiate itself from the sibling check_caption_safe_zone, which overlaps on the safe-area portion, so it falls short of 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 Guidelines4/5

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

The description gives clear selection context by naming the four accepted input sources and pointing at read_sequence_captions as a typical producer of cues, and it clarifies the tool never mutates Premiere. It does not say when to prefer this over check_caption_safe_zone or when QA is inappropriate (e.g. no standard available), so no explicit exclusions.

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

Deploy Server

Other Tools