Skip to main content
Glama

Delete track

delete_track
Destructive

Delete a video or audio track and all clips on it from a Premiere Pro sequence; higher tracks shift down, while locked or last-of-type tracks are refused.

Instructions

Delete one track from a sequence together with every clip on it. Higher tracks of that type shift down by one index. The last track of a type cannot be deleted (UNSUPPORTED), and a locked track is refused with FAILED (unlock it with set_track_lock first). Returns the deleted track (with its clip_count) and the new track counts. Use remove_empty_tracks to drop all empty tracks, clear_track to keep the track but remove its clips.

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": {
      "track_type": "<track_type>",
      "track_index": "<track_index>"
    },
    "name": "delete_track"
  }
}

Input Schema

NameRequiredDescriptionDefault
track_typeYesTrack type: "video" or "audio".
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexYes0-based track index (0 = V1 or A1).
sequence_nameNoSequence name; used only when sequence_id is not given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false; the description adds the crucial detail that all clips are destroyed with the track and that higher tracks of the same type shift index. It also discloses failure modes (UNSUPPORTED for the last track of a type, FAILED for a locked track) and the return payload.

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?

Dense and front-loaded: destruction, side effects, constraints, returns, then alternatives. Occasionally stacked parenthetical error codes make it slightly heavy, but no sentence is wasted.

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

Completeness5/5

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

No output schema exists, yet the description explains both returned values (the deleted track with clip_count, and the new track counts). For a destructive 4-parameter tool, an agent has everything needed to call it correctly or avoid calling it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description goes further by tying track_type to the "last track of a type" rule and track_index to the downward shift of higher tracks. It also notes which sequence is targeted via the sequence_id/sequence_name pairing.

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?

States a specific verb and resource ("Delete one track from a sequence") plus the cascade consequence ("together with every clip on it"). It is immediately distinguishable from siblings like clear_track or remove_empty_tracks, which it names.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use remove_empty_tracks to drop all empty tracks, clear_track to keep the track but remove clips. It also states a prerequisite (unlock with set_track_lock first) and the conditions under which the tool refuses.

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