Skip to main content
Glama

Write an SRT file from sequence markers

srt_from_markers

Convert sequence markers into an .srt caption file so marker names or comments become timed captions ready to import into Premiere Pro.

Instructions

Turn a sequence's markers into an .srt caption file: each marker becomes a caption at its time, with the marker's name (or comment) as text. A marker with a duration lasts that long; a point marker lasts until the next marker, at most default_duration seconds. Fails with BAD_ARGS when no marker has text. Returns file_path, count, skipped markers (no text, no room) and the segments. Fails with FILE_EXISTS if the file exists unless overwrite is true. Follow with import_captions_file to put the captions on the 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": {
      "file_path": "<file_path>"
    },
    "name": "srt_from_markers"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesThe .srt file to write. Absolute path; missing folders are created.
overwriteNoReplace the file if it exists. Default false.
text_fromNoWhich marker field becomes the caption text. Default "name_or_comment" (the name, or the comment when the name is empty).
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
sequence_nameNoSequence name; used only when sequence_id is not given.
default_durationNoLength of captions made from point markers, in seconds (shortened to end at the next marker). Default 3.

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?

Annotations only cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false). The description goes well beyond them, naming two specific failure modes (BAD_ARGS for textless markers, FILE_EXISTS unless overwrite is true), the fact that missing folders are created, and the exact return payload including skipped markers with reasons.

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?

Every sentence carries distinct information: mapping rule, duration rule, failure modes, return values, overwrite condition, and the follow-up tool. The mapping rule is front-loaded and there is no filler or repetition of schema text.

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?

For a six-parameter write tool with no output schema, the description covers what is produced (file_path, count, skipped markers, segments), what can go wrong, overwrite semantics, and the recommended next step. Nothing an agent needs in order to invoke it correctly 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 is 3. The description still adds real conceptual meaning beyond the schema: how marker durations map to caption lengths, and that point markers extend to the next marker capped by default_duration. It does not explicitly connect these rules to parameter names like text_from, so it is not a full 5.

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 description opens with a specific verb and resource: turning a sequence's markers into an .srt caption file, with each marker becoming a caption. That is far more than a restatement of the name. It stops short of a 5 because it never contrasts itself with the sibling write_srt_file, so an agent must infer which of the two SRT-writing tools applies.

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?

It gives a concrete downstream step (follow with import_captions_file to put captions on the sequence) and states the failure condition when no marker has text, which tells the agent when the tool is not viable. It does not address when to prefer this over write_srt_file or export_markers, so the alternative-selection guidance is incomplete.

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