Skip to main content
Glama

Convert sequence timecode to seconds

sequence_timecode_to_time
Read-onlyIdempotent

Convert sequence timecodes to seconds from start and 0-based frame numbers while honoring frame rate and start time, so you can map timeline positions accurately.

Instructions

Convert a timecode string in a sequence's own display format to seconds from the sequence start, honouring its frame rate and start time. Accepts "00:01:02:15", drop-frame "00;01;02;15", a frame count or feet+frames ("12+08"), matching the display format; malformed text or a time before the sequence start fails with BAD_ARGS. Returns the time in seconds, the 0-based frame number and the normalised timecode. Use set_playhead_timecode to move the playhead to a timecode.

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": {
      "timecode": "<timecode>"
    },
    "name": "sequence_timecode_to_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
timecodeYesTimecode in the sequence's video display format, as shown on the timeline ruler, e.g. "01:00:04:10".
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
sequence_nameNoSequence name; used only when sequence_id is not given.
includes_start_timeNotrue = the timecode is a ruler position that includes the sequence start time (zero point), which is subtracted; false = counted from 00:00:00:00. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower, yet the description adds real value: accepted input forms (SMPTE, drop-frame, frame count, feet+frames) and the failure mode BAD_ARGS for malformed text or times before sequence start. What it omits is any note on rounding/precision or performance for calling it repeatedly, which would have made this a 5.

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?

Front-loaded with the core conversion, then accepted formats, then failure mode, then return shape, then the disambiguation sentence. Four sentences, each carrying distinct information with no filler or repetition of the tool name.

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 stating exactly what is returned: seconds, the 0-based frame number and the normalised timecode. With 100% schema coverage for inputs plus disclosed failure behavior, an agent has everything needed to call it correctly.

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?

Schema coverage is 100%, so the baseline is 3, but the description genuinely extends the 'timecode' parameter beyond the schema's single example by enumerating drop-frame '00;01;02;15', bare frame counts and feet+frames '12+08'. It also ties the conversion to the sequence's frame rate and start time, which gives context for the includes_start_time flag, though it does not directly explain that flag's effect on the arithmetic.

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 opens with a precise verb+resource+semantics: convert a timecode string in a sequence's own display format to seconds from sequence start, honouring frame rate and start time. It is clearly a pure conversion, distinct from siblings like sequence_time_to_timecode (inverse) and set_playhead_timecode (mutation of playhead position).

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?

It names the alternative explicitly and gives the condition that selects it: 'Use set_playhead_timecode to move the playhead to a timecode' — telling the agent this tool converts but does not move. Combined with the conversion-vs-mutation framing, an agent can route correctly without opening another schema.

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