Skip to main content
Glama

Lock or unlock track

set_track_lock
Idempotent

Lock or unlock a single video or audio track to prevent clips from being edited, moved, or deleted by the user or other tools. Returns the track state read back.

Instructions

Lock or unlock one track. Clips on a locked track cannot be edited, moved or deleted, by the user or by other tools. Returns the track state read back. Use set_all_tracks_lock for every track.

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>",
      "locked": "<locked>"
    },
    "name": "set_track_lock"
  }
}

Input Schema

NameRequiredDescriptionDefault
lockedYestrue = lock, false = unlock.
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.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the actual consequence of locking: clips on the track cannot be edited, moved or deleted, and that this restriction binds other tools as well, not just the user. It also states the return value ('read back state'), which matters because there is no output schema; nothing here contradicts readOnlyHint=false, destructiveHint=false or idempotentHint=true.

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 purpose, then effect, then the sibling routing. Every sentence carries distinct information and there is no filler.

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 5-parameter mutation with full schema coverage and no output schema, the description covers purpose, effect on clips, cross-tool impact, return value and the bulk alternative. Only the scoping behavior of sequence_id vs sequence_name (already in the schema) and any auth/precondition notes are absent.

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 100%, so every parameter including the 'true = lock, false = unlock' semantics of `locked` and the 0-based index convention is already documented in the schema. The description adds no format or default detail beyond implying a single track is targeted; 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 (lock/unlock) against a specific resource (one track), and the word 'one' immediately delimits scope against the bulk sibling set_all_tracks_lock. An agent can distinguish this from the eight other set_*_lock/set_track_* tools without opening a 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?

Explicitly routes the all-tracks case to set_all_tracks_lock, which is the main decision point among siblings. It gives no exclusion guidance for the adjacent set_track_sync_lock or the mute/target track setters, but the single-vs-all split is the meaningful fork here.

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