Skip to main content
Glama

apply_cleanup

Removes content in every 'Scout/Cleanup:' marker range on the active sequence using lift (leaves gap) or extract (ripples later content left), with a backup clone created first.

Instructions

DESTRUCTIVE — applies Lift or Extract to every 'Scout/Cleanup:' marker range on the active sequence. Lift removes the content within each range and leaves a gap; Extract removes it AND ripples later content left to close the gap. A backup clone of the sequence is created FIRST (look for ' — backup' in the Project panel) so this is recoverable. If the backup cannot be confirmed, the tool ABORTS before touching the timeline and returns an error; only after the user explicitly accepts the risk may you retry with allowNoBackup: true. Acts ONLY on markers whose name starts with 'Scout/Cleanup:' — to apply over markers you placed in another namespace, first rename them via remove_markers + place_markers. Requires the CEP helper to be running (see cep-helper/README.md). Confirm with the user before invoking — this changes their timeline. Extract mode also leaves a GREEN point marker (prefix 'Scout/Edit:') at each join location so the user can navigate via the Markers panel and audit each cut. Listable/removable via list_markers/remove_markers with prefix='Scout/Edit:'. Lift mode does NOT place these (the gap is already the visual breadcrumb). The result includes a log:[...] array of internal diagnostic lines — check it (especially the backup line) and surface anything alarming to the user. The result always includes activeSequence {name, id} — the sequence this call actually ran against. Compare it across calls to detect the user switching sequences in Premiere mid-session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYeslift = remove content, leave gap. extract = remove content AND ripple later content left.
allowNoBackupNoOptional, default false. By default the tool ABORTS (before any razor/remove) when the pre-apply backup clone cannot be confirmed — createCloneAction sometimes returns null (cause unknown; see the tool error text). Pass true ONLY after the user has explicitly agreed to proceed without a backup (e.g. they saved the project and accept the risk).
Install Server

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden. It openly discloses destructiveness, backup creation, abort behavior without backup, the allowNoBackup escape hatch, CEP helper dependency, and result content including log and activeSequence. No relevant behavioral aspect is left unspecified.

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 description is long but every sentence adds value — it front-loads the destructive warning and core action, then organizes details logically (backup, abort, marker scope, requirements, side effects, result). While it could be tightened, the length is justified by the complexity of a destructive operation with multiple failure modes.

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?

Despite having no output schema, the description fully explains the return values (log array, activeSequence object) and even advises checking the backup line in the log. It covers all necessary operational context: prerequisites, failure modes, side effects, and user consent. Nothing an agent needs to call this correctly is missing.

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

Parameters4/5

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

The schema already describes both parameters (mode enum and allowNoBackup with defaults), but the description adds critical context: the abort behavior when backup cannot be confirmed, the explicit condition for passing allowNoBackup, and the meaning of each mode in operational terms. This goes well beyond the schema's basic descriptions.

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 clearly states the tool applies Lift or Extract to marker ranges with a specific prefix, and distinguishes itself from sibling selection-based tools (lift_selection, extract_selection) by operating on markers rather than selections. The verb and resource are specific and unambiguous.

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?

Provides explicit usage conditions: only acts on markers starting with 'Scout/Cleanup:', tells users to rename markers in other namespaces via remove_markers/place_markers, requires confirmation before invoking, and notes the CEP helper requirement. Clearly differentiates when to use this tool.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tro2789/scout-premiere-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server