Skip to main content
Glama

Re-export subtitles from a transcript JSON

convert_subtitles
Idempotent

Regenerates SRT, VTT, TXT, JSON, or ASS subtitle files from a babelscribe JSON without transcribing again, applying edited text, timing, format changes, and line width.

Instructions

Write subtitle files again from a babelscribe .json, without transcribing again (instant, no GPU).

Use it to change the line width or add a format, or after correcting names and words: edit the "text" of the segments in the JSON, then call this, and every format gets the corrected text with its timing. json_path: absolute path to the .json written by transcribe (formats must have included json). formats: comma list from srt, vtt, txt, json, ass. max_line_chars: maximum characters per subtitle line; 0 = the default for the language. output_dir: folder for the output files; empty = next to the JSON. Returns the files written, the number of segments, and how many had edited text.

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": {
      "json_path": "<json_path>"
    },
    "name": "convert_subtitles"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatsNosrt
json_pathYes
output_dirNo
max_line_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare idempotent=true, destructive=false, readOnly=false; the description adds what the annotations cannot — that the operation is instant with no GPU cost, that the source JSON must have been written with json included in formats, and what the response reports (files written, segment count, edited-text count). It does not say whether existing files in output_dir are overwritten, 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?

Purpose and the transcribe distinction are front-loaded, the workflow tip sits before the parameter block, and each remaining line maps to exactly one parameter or the return value. No filler sentences.

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?

With no output schema, the description supplies the return summary, and with 0% schema coverage it documents all four parameters including the format enum. For a four-parameter re-export utility that is as complete as the agent needs to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden and does: json_path is the absolute path from transcribe with a stated precondition, formats enumerates the five valid values (srt, vtt, txt, json, ass) which the schema does not, max_line_chars defines the 0 default semantics, and output_dir defines empty as 'next to the JSON'.

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 ('Write subtitle files again from a babelscribe .json') and immediately scopes it against the transcribe sibling with 'without transcribing again (instant, no GPU)', so the agent can distinguish the two without opening either schema.

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 concrete when-to-use triggers: changing line width, adding a format, or fixing names/words after editing segment text. It also implicitly rules out re-running transcription. It stops short of naming transcribe or burn_subtitles explicitly as the alternative, so routing is inferred rather than stated.

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