Skip to main content
Glama

subtitle_generate

Generate subtitles from timeline audio using Resolve Studio or an AI provider, then import the resulting SRT. Choose engine, language, and line settings to caption a timeline.

Instructions

Generate subtitles from the timeline audio. engine 'resolve' uses Resolve Studio's CreateSubtitlesFromAudio; engine 'provider' transcribes a rendered/source audio file with the configured AI provider and imports the SRT.

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

Input Schema

NameRequiredDescriptionDefault
linesNo
engineNoresolve
languageNoresolve: e.g. english, spanish (AUTO_CAPTION_* constant). provider: ISO code like en
timelineNoTimeline name or id (default: current timeline)
audioPathNoprovider engine: audio/video file to transcribe
gapFramesNo
charsPerLineNo

Output Schema

NameRequiredDescriptionDefault
okYesTrue only when DaVinci Resolve confirmed the operation.
dataNo
toolYes
errorNo
sourceNoWhere the result came from: the real DaVinci Resolve, the mock adapter (tests), or the server alone.
statusYes
messageYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false), the description discloses two meaningful behaviors: the 'resolve' path requires Resolve Studio specifically, and the 'provider' path transcribes a file and then imports an SRT, which is what makes this a write operation. It stops short of saying whether existing subtitle tracks are replaced, appended to, or whether a new track is created.

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?

Two sentences, purpose front-loaded, then the engine distinction in a single compact clause each. No filler and no repetition of the title or annotations.

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?

With an output schema present, return values needn't be explained, and the dual-mechanism behavior plus the Studio requirement cover the core of what an agent needs. The remaining shortfall is the undefined formatting parameters and the unspecified effect on pre-existing subtitles.

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 only 43%, so the description must carry weight; it does explain the two engine values and that 'provider' needs an audio/video file, reinforcing the schema's language oneof. But lines, gapFrames, and charsPerLine — all formatting controls — are undocumented in both schema and description, leaving a real gap.

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 concrete verb and resource ('Generate subtitles from the timeline audio') and goes further by naming the two internal mechanisms (Resolve Studio's CreateSubtitlesFromAudio vs. provider transcription + SRT import). It does not, however, distinguish itself from close siblings such as ai_generate_subtitles or subtitle_import, which an agent would also plausibly consider.

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 engine split is described in terms of what each does rather than when to choose one over the other, so selection is only implied (use 'provider' when you have an audio file, 'resolve' otherwise). There is no explicit when-not guidance and no routing to sibling tools, leaving the agent to infer the choice from the mechanism descriptions.

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