Skip to main content
Glama

Get captions (SRT) for a generation

get_captions
Read-onlyIdempotent

Get subtitles for a generation as an SRT file — timed from the actual speech, with any [emotion] markup and pauses stripped out. phrase mode gives readable subtitle lines; word mode gives one cue per word (karaoke-style highlighting). Use the id returned by generate_speech.

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": {
      "id": "<id>"
    },
    "name": "get_captions"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe generation id returned by generate_speech
modeNophrase (default): readable subtitle lines. word: one cue per word, for karaoke-style captions.
max_wordsNoWords per subtitle line in phrase mode (2–7, default 4)
uppercaseNoUPPERCASE the caption text (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description adds real behavioral detail beyond them: output is an SRT timed from actual speech, with [emotion] markup and <break/> pauses stripped, and the two modes produce different cue granularity. It doesn't discuss size limits or failure modes, but the transformation behavior is well disclosed.

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 tight sentences, front-loaded with the output format and transformation, then mode semantics, then the ID prerequisite. No filler.

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 read-only, single-object retrieval tool with full schema coverage and no output schema, this tells the agent what it gets (SRT), how it's derived, and how to vary granularity. Minor gap: nothing about how the ID is validated or what happens with an unknown ID.

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 100%, so all four parameters are already documented. The description restates the phrase/word mode semantics but adds nothing about max_words or uppercase, so it neither compensates nor misleads — baseline 3 is appropriate.

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 and resource ('Get subtitles for a generation') plus the concrete output format (SRT file), which cleanly separates it from audio-fetching siblings like get_speech.

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 the prerequisite ('Use the id returned by generate_speech') and explains which mode to pick for which caption style. It does not explicitly state when not to use it or name an alternative caption tool, but the context is clear enough to act on.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources