Skip to main content
Glama

Convert between seconds, frames, ticks and timecode

convert_time
Read-onlyIdempotent

Convert time values between seconds, frames, ticks, and timecode at a specified frame rate, with NTSC and drop-frame support. Useful for arithmetic conversions that don't need a Premiere Pro project.

Instructions

Convert a time value between seconds, frames, ticks (254016000000 per second, Premiere's internal unit) and timecode at a given frame rate. Pure arithmetic: Premiere Pro is not called and no project is needed, so it ignores any sequence start time; use sequence_time_to_timecode or sequence_timecode_to_time for a sequence's own ruler. 23.976, 29.97 and 59.94 are treated as the exact NTSC rates (n*1000/1001). Drop-frame timecode (29.97 and 59.94 only) is written 00;00;00;00 and non-drop 00:00:00:00. Returns all four representations; frames is the nearest frame (0-based) and frame_aligned says whether the input fell exactly on it.

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": {
      "value": "<value>",
      "from": "<from>",
      "fps": "<fps>"
    },
    "name": "convert_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsYesFrame rate in frames per second, above 0 and up to 1000, e.g. 23.976, 24, 25, 29.97, 30, 50, 59.94, 60.
fromYesUnit of value.
valueYesThe value to convert: a number for seconds or frames, a number or digit string for ticks, a string such as "00:01:00:00" for timecode.
drop_frameNoUse drop-frame timecode (29.97 / 59.94 fps only). Default: true when a timecode value is written with ";", otherwise false.

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), and the description adds real behavioral context beyond them: no host application call, no project dependency, sequence start time ignored, and NTSC rates treated as exact n*1000/1001. It stops short of documenting error behavior for out-of-range or malformed inputs, which is the one behavior an agent might still need.

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 purpose, then scope caveats, then rate/notation rules, then return shape – a deliberate progression with no filler. The parenthetical about Premiere's internal tick unit is compact and load-bearing rather than decorative.

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 enumerating the four returned representations plus the meaning of `frames` (nearest frame, 0-based) and `frame_aligned`. Combined with the annotation coverage and complete parameter documentation, nothing an agent needs to call or interpret this tool 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?

Schema coverage is 100%, so the baseline would be 3; the description earns above it by explaining the ticks constant (254016000000 per second) and the drop-frame semantics, including the 29.97/59.94-only restriction and the ";" separator convention that the schema's drop_frame default references but never spells out. It does not add value for `value` beyond what the schema already says.

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 ("Convert") plus the full resource set (seconds, frames, ticks, timecode) and the required frame-rate context. It explicitly carves itself away from sequence_time_to_timecode and sequence_timecode_to_time, so an agent can pick the right tool 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use ("Pure arithmetic: Premiere Pro is not called and no project is needed") and names the alternatives plus the condition that selects them (a sequence's own ruler, which honors start time). The exclusion of sequence start time is stated directly.

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