Skip to main content
Glama

Close a sequence tab

close_sequence
Idempotent

Closes a sequence’s tab in Premiere Pro’s Timeline panel without deleting it from the project, so editors can clear open timelines while keeping the sequence available for reopening.

Instructions

Close a sequence's tab in the Timeline panel. The sequence stays in the project (use delete_sequence to remove it) and can be reopened with set_active_sequence. Fails with FAILED if Premiere keeps the tab open. Returns closed=true and the id and name of the sequence that is active afterwards (null when no sequence is left open).

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

Input Schema

NameRequiredDescriptionDefault
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
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.5/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true), the description discloses the post-state (sequence stays in the project), the failure mode ('Fails with FAILED if Premiere keeps the tab open'), and the return payload. It stops short of noting whether unsaved changes or a modal prompt affect the close, which is the main residual unknown for a mutating call.

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?

Three short sentences, front-loaded with the action, then the non-destructive clarification, then the failure and return contract. Every clause carries information an agent needs.

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?

There is no output schema, and the description compensates by specifying the return shape (closed=true plus the id/name of the newly active sequence, null when none remain) along with the error condition. Nothing an agent needs to call and interpret this tool is missing.

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 precedence rule (sequence_name only used when sequence_id is absent, omit to use the active sequence) is already documented in the schema. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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 ('Close a sequence's tab in the Timeline panel') and immediately contrasts it with delete_sequence and set_active_sequence, so the agent can distinguish it from the closest siblings without reading either schema.

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 names the alternative ('use delete_sequence to remove it') and the reopen path ('set_active_sequence'), giving clear when-to-use-this vs when-to-use-another guidance with no inference required.

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