Skip to main content
Glama

Draft captions from a script

script_to_srt

Generate an SRT caption file from a script with estimated timing, creating a placeholder caption track for the timeline before the voiceover exists or a starting point to re-sync later.

Instructions

Generate an SRT caption file from the script with estimated timing — a placeholder track to drop on the timeline before the voiceover exists, or a starting point to re-sync later. reels style = 1–3 words per caption; standard = up to 42 characters. Stage directions are skipped.

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": "script_to_srt"
  }
}

Input Schema

NameRequiredDescriptionDefault
wpmNoCustom words per minute (overrides pace). Measure yours with estimate_duration + actual_seconds.
paceNoslow 130 · conversational 150 · energetic 170 (typical Reels/TikTok) · fast 190 words per minute.energetic
pathNoOr a local .txt / .md file. ~ is expanded.
textNoThe script text.
styleNoreels
max_charsNo
max_wordsNo
overwriteNo
uppercaseNo
output_pathNoSave as .srt.
offset_secondsNoStart the first caption this many seconds in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=false, so the description earns credit for disclosing that timing is estimated rather than measured and that stage directions are skipped — both non-obvious output behaviors. It does not explain file-writing behavior (overwrite, where the SRT lands), which matters for a write tool.

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?

Three short sentences, each doing work: purpose and use case first, then the two style modes compactly encoded as '1–3 words' vs 'up to 42 characters', then the stage-direction caveat. No filler or repetition of the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 11 parameters, 55% schema coverage, and no output schema, the description covers purpose, timing fidelity, and style but leaves the write-side behavior opaque — overwrite semantics, default output location, and uppercase handling are undocumented anywhere. Adequate for the core call, thin for a tool that produces a file.

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 coverage is 55%, and the description usefully compensates for the undocumented style enum by defining reels as 1–3 words per caption and standard as up to 42 characters. It adds nothing for the other under-documented parameters (max_chars, max_words, uppercase, overwrite, offset_seconds), so compensation is partial.

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?

States a specific verb and resource: 'Generate an SRT caption file from the script with estimated timing,' and immediately frames it as a placeholder/draft artifact. This is concrete enough for an agent to distinguish it from analysis siblings like analyze_pacing or estimate_duration, though it never contrasts itself with any named sibling.

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?

Gives clear situational context: use it as a placeholder track before the voiceover exists, or as a starting point to re-sync later. There are no explicit exclusions or named alternatives (e.g., when to prefer fit_to_duration instead), so it falls short of a full when/when-not statement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.