Skip to main content
Glama

Convert time

time_convert
Read-only

Convert seconds, frames, and timecode using a composition's frame rate, drop-frame setting, and start timecode; auto-detects input units for accurate After Effects timing.

Instructions

Convert between seconds, frames and timecode using a comp's frame rate, drop-frame setting and Start Timecode (displayStartTime). Input auto-detects: number = seconds, '48f' = frames, 'HH:MM:SS:FF' = timecode (';' = drop-frame), '2.5s'. 'timecode' in the result is measured from the comp start (what other tools accept); 'displayTimecode' is what AE shows. Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "time_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNoFrame rate override (no comp needed when given).
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
fromNoInput unit (default auto). display_timecode = timecode as shown in AE (Start Timecode is subtracted).
valueNoValue to convert.
valuesNoSeveral values to convert at once.
dropFrameNoForce drop-frame timecode on/off (29.97/59.94).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds meaningful behavior beyond that: it uses the comp's frame rate, drop-frame setting, and Start Timecode, auto-detects input formats, and explains that 'timecode' is comp-start-relative while 'displayTimecode' matches AE display.

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 description is front-loaded with the core conversion purpose, then compactly enumerates input formats and output semantics. Every sentence carries actionable information, and the final read-only note is brief.

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 six-parameter tool with no output schema, the description sufficiently covers the main conversion behavior, accepted input forms, comp/fps dependency, and return-field semantics. Minor gaps remain around error behavior or bulk conversion via values, but the schema covers parameter details.

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 description coverage is 100%, so the schema already documents all six parameters. The description still adds value by giving concrete auto-detection rules such as number = seconds, '48f' = frames, timecode syntax, and semicolon drop-frame notation, plus the distinction between returned timecode fields.

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 states a specific verb and resource: convert between seconds, frames, and timecode using comp frame rate, drop-frame, and Start Timecode. It also clarifies input auto-detection and output distinctions, so an agent can distinguish this from time-manipulation siblings such as shift_layers_in_time or enable_time_remap.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The description gives useful context about comp frame rate, override via fps, and output timecode semantics, but it does not explicitly say when to prefer this tool over alternatives or when not to use it. Usage is implied rather than stated with exclusions or sibling routing.

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