Skip to main content
Glama

Shift markers in time

shift_markers

Move all or filtered sequence markers earlier or later by a seconds offset, preserving durations and optionally clamping markers to zero instead of failing.

Instructions

Move all markers of a sequence, or only those chosen by marker_ids and/or the filters, by an offset in seconds (negative = earlier). Durations are kept. If a marker would land before 0 the call fails and moves nothing, unless clamp_to_zero is true. Returns shifted, clamped_to_zero and the moved markers at their new times. Use it after inserting or removing material at the head of a sequence.

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": {
      "offset": "<offset>"
    },
    "name": "shift_markers"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoOnly markers whose name or comment contains this text (plain substring, case-insensitive).
typeNoOnly markers of this type. One of "comment", "chapter", "segmentation", "web_link".
colorNoOnly markers of this colour. Colour index or name: 0 green, 1 red, 2 purple, 3 orange, 4 yellow, 5 white, 6 blue, 7 cyan.
offsetYesSeconds to add to each marker's time. Negative moves markers earlier.
to_timeNoOnly markers that start at or before this sequence time, in seconds.
from_timeNoOnly markers that start at or after this sequence time, in seconds.
marker_idsNoOnly shift these markers (combined with any filters). Omit: all markers that match the filters.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
clamp_to_zeroNoPlace markers that would land before the start of the sequence at 0 instead of failing. Default false.
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.3/5.0
Behavior5/5

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

Annotations only declare the write/atomicity profile mechanically; the description goes further by stating that durations are preserved, that a would-be negative time causes an all-or-nothing failure that moves nothing, that clamp_to_zero is the escape hatch, and that the response includes shifted, clamped_to_zero and the moved markers. These are exactly the behavioral facts an agent cannot infer from the schema, and nothing contradicts the non-idempotent, non-destructive annotations.

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?

The scope and effect are front-loaded in sentence one, followed by behavioral guarantees, return values, and finally the usage cue. Every sentence carries a distinct, actionable fact with no padding or repetition.

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?

With no output schema, the description correctly takes on the return-value burden by naming shifted, clamped_to_zero and the moved markers. For a ten-parameter mutation tool with 100% schema coverage and annotations covering the safety profile, adding duration preservation and atomic failure semantics closes the remaining gaps.

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 all ten parameters are already documented, including the offset sign, clamp_to_zero default and the filter combinations. The description's parameter content ("negative = earlier", clamp behavior) largely restates the schema; only "Durations are kept" adds meaning not present in any field description, so the baseline 3 applies.

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?

The opening sentence gives a specific verb (move), resource (markers), and scope (all markers of a sequence or a marker_ids/filter subset) plus the unit and sign convention of the offset. It is clearly distinct from add_markers/delete_markers/find_markers by intent, but it never names an alternative tool to steer toward or away from, which keeps it below 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?

"Use it after inserting or removing material at the head of a sequence" supplies a concrete triggering condition, and the failure/clamp rule tells the agent when a plain call will be rejected. There are no explicit exclusions or named alternative tools for the case where the agent should not shift, so it stops short of a 5.

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