Skip to main content
Glama

convert_subtitles

Read-onlyIdempotent

utilpeek: Convert SRT, WebVTT and JSON subtitles; scale or shift timing. To make subtitles from audio use transcribe_audio. Returns converted subtitles. At most 1,000,000 characters and 10,000 cues. Use srt_speaker_labels for whole-cue VTT names in SRT, or literal_segment_text for plain segments to VTT. Starts clamp at 0; negative shifts drop cues ending at or before 0. Max time 99:59:59.999. Invalid input: uncharged 422. Typically under 0.3 s. Price: USD 0.002. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/subtitle-converter-api.html

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

Input Schema

NameRequiredDescriptionDefault
toYesOutput format.
contentNoSRT, WebVTT, ASS/SSA or SBV text.
segmentsNoSegments in seconds.
shift_msNoShift after scale (ms).
time_scaleNoScale cue and inline times; ties to even.
from_formatNoInput format; auto-detect by default.
srt_speaker_labelsNoPrefix whole-cue names; explicit vtt to srt.
literal_segment_textNoEscape segments to vtt.
preserve_vtt_cue_idsNoKeep exact IDs; explicit vtt to vtt.
preserve_vtt_cue_settingsNoKeep placement; explicit vtt to vtt.
preserve_vtt_timestamp_mapNoKeep HLS map; explicit vtt to vtt.

Output Schema

NameRequiredDescriptionDefault
toNo
cuesNo
fromNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
outputNo
droppedNo
durationNo
segmentsNo
shift_msNo
operationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / content / description
      Previous value: -"SRT, WebVTT or ASS/SSA text."New value: +"SRT, WebVTT, ASS/SSA or SBV text."
    • changedInput schema / properties / from_format / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "srt",
      -      "vtt",
      -      "ass",
      -      "json"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "srt",
      +      "vtt",
      +      "ass",
      +      "sbv",
      +      "json"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / content / description
      Previous value: -"SRT or WebVTT text."New value: +"SRT, WebVTT or ASS/SSA text."
    • changedInput schema / properties / from_format / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "srt",
      -      "vtt",
      -      "json"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "srt",
      +      "vtt",
      +      "ass",
      +      "json"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed8 schema fields changed
    • changedInput schema / properties / from_format / description
      Previous value: -"Input format; auto-detected if omitted."New value: +"Input format; auto-detect by default."
    • changedInput schema / properties / literal_segment_text / description
      Previous value: -"Escape cue text; only for segments to vtt."New value: +"Escape segments to vtt."
    • changedInput schema / properties / preserve_vtt_cue_ids / description
      Previous value: -"Keep exact cue IDs; requires from_format and to both vtt."New value: +"Keep exact IDs; explicit vtt to vtt."
    • changedInput schema / properties / preserve_vtt_cue_settings / description
      Previous value: -"Keep cue placement; requires from_format and to both vtt."New value: +"Keep placement; explicit vtt to vtt."
    • changedInput schema / properties / preserve_vtt_timestamp_map / description
      Previous value: -"Keep the HLS map; requires from_format and to both vtt."New value: +"Keep HLS map; explicit vtt to vtt."
    • changedInput schema / properties / shift_ms / description
      Previous value: -"Shift in milliseconds after scaling."New value: +"Shift after scale (ms)."
    • addedInput schema / properties / srt_speaker_labels
      Added value: +{
      +  "default": false,
      +  "description": "Prefix whole-cue names; explicit vtt to srt.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / time_scale / description
      Previous value: -"Scale cue and inline times; ties round to even."New value: +"Scale cue and inline times; ties to even."
  4. Changed2 schema fields changed
    • changedInput schema / properties / content / description
      Previous value: -"SRT or WebVTT text; use instead of segments."New value: +"SRT or WebVTT text."
    • addedInput schema / properties / literal_segment_text
      Added value: +{
      +  "default": false,
      +  "description": "Escape cue text; only for segments to vtt.",
      +  "type": "boolean"
      +}
  5. Changed2 schema fields changed
    • addedInput schema / properties / preserve_vtt_cue_ids
      Added value: +{
      +  "default": false,
      +  "description": "Keep exact cue IDs; requires from_format and to both vtt.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / preserve_vtt_timestamp_map / description
      Previous value: -"Keep the HLS timestamp map unchanged; requires from_format and to both vtt."New value: +"Keep the HLS map; requires from_format and to both vtt."
  6. Changed5 schema fields changed
    • changedInput schema / properties / from_format / description
      Previous value: -"Input format; detected when omitted."New value: +"Input format; auto-detected if omitted."
    • addedInput schema / properties / preserve_vtt_timestamp_map
      Added value: +{
      +  "default": false,
      +  "description": "Keep the HLS timestamp map unchanged; requires from_format and to both vtt.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / segments / description
      Previous value: -"Segments in seconds, as /v1/audio/transcribe returns."New value: +"Segments in seconds."
    • changedInput schema / properties / shift_ms / description
      Previous value: -"Shift in milliseconds after scaling; negative moves cues earlier."New value: +"Shift in milliseconds after scaling."
    • changedInput schema / properties / time_scale / description
      Previous value: -"Multiply cue and inline times before shifting; ties round to even."New value: +"Scale cue and inline times; ties round to even."
  7. Changed7 schema fields changed
    • changedInput schema / properties / content / description
      Previous value: -"The SRT or WebVTT file as text (at most 1,000,000 characters, 10,000 cues). The format is detected from a WEBVTT header unless from_format is given. Use this or segments."New value: +"SRT or WebVTT text; use instead of segments."
    • changedInput schema / properties / from_format / description
      Previous value: -"Input format check: content is srt or vtt, segments are json."New value: +"Input format; detected when omitted."
    • addedInput schema / properties / preserve_vtt_cue_settings
      Added value: +{
      +  "default": false,
      +  "description": "Keep cue placement; requires from_format and to both vtt.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / segments / description
      Previous value: -"A JSON segment list [{start, end, text}] in seconds, as /v1/audio/transcribe returns it. Use this or content."New value: +"Segments in seconds, as /v1/audio/transcribe returns."
    • changedInput schema / properties / shift_ms / description
      Previous value: -"Time shift in milliseconds, after scaling (negative = earlier; cues ending at or before 0 are dropped)."New value: +"Shift in milliseconds after scaling; negative moves cues earlier."
    • changedInput schema / properties / time_scale / description
      Previous value: -"Timing multiplier, 0.5 to 2.0; default 1. Cue bounds and WebVTT inline timestamps become round(ms * time_scale) + shift_ms; ties round to even."New value: +"Multiply cue and inline times before shifting; ties round to even."
    • changedInput schema / properties / to / description
      Previous value: -"Output format: srt (SubRip), vtt (WebVTT) or json (a list of {start, end, text}, seconds)."New value: +"Output format."
  8. Changed2 schema fields changed
    • changedInput schema / properties / shift_ms / description
      Previous value: -"Time shift in milliseconds for every cue (negative = earlier; a cue that ends before 0 is dropped)."New value: +"Time shift in milliseconds, after scaling (negative = earlier; cues ending at or before 0 are dropped)."
    • addedInput schema / properties / time_scale
      Added value: +{
      +  "default": 1,
      +  "description": "Timing multiplier, 0.5 to 2.0; default 1. Cue bounds and WebVTT inline timestamps become round(ms * time_scale) + shift_ms; ties round to even.",
      +  "maximum": 2,
      +  "minimum": 0.5,
      +  "type": "number"
      +}
  9. Changed15 schema fields changed
    • removedInput schema / $defs / SubtitleSegment / properties / end / title
      Removed value: -"End"
    • removedInput schema / $defs / SubtitleSegment / properties / start / title
      Removed value: -"Start"
    • removedInput schema / $defs / SubtitleSegment / properties / text / title
      Removed value: -"Text"
    • removedInput schema / $defs / SubtitleSegment / title
      Removed value: -"SubtitleSegment"
    • removedInput schema / properties / content / default
      Removed value: -null
    • removedInput schema / properties / content / title
      Removed value: -"Content"
    • removedInput schema / properties / from_format / default
      Removed value: -null
    • changedInput schema / properties / from_format / description
      Previous value: -"Optional input format check: content is srt or vtt, segments are json."New value: +"Input format check: content is srt or vtt, segments are json."
    • removedInput schema / properties / from_format / title
      Removed value: -"From Format"
    • removedInput schema / properties / segments / default
      Removed value: -null
    • removedInput schema / properties / segments / title
      Removed value: -"Segments"
    • removedInput schema / properties / shift_ms / title
      Removed value: -"Shift Ms"
    • removedInput schema / properties / to / title
      Removed value: -"To"
    • removedInput schema / title
      Removed value: -"convert_subtitlesArguments"
    • removedOutput schema / properties / segments / items
      Removed value: -{
      -  "properties": {
      -    "end": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "start": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "text": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
  10. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), yet the description still adds substantial behavior: 1,000,000-char / 10,000-cue ceilings, start clamping at 0, negative shifts dropping cues that end at or before 0, a 99:59:59.999 max time, a 422 on invalid input, typical sub-0.3s latency, and pricing/free-tier terms. That is exactly the kind of operational context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose, alternative tool, limits, error behavior, and cost are all front-loaded in a single dense block with no filler sentences. It is slightly telegraphic ("uncharged 422", "Free: 10 utilpeek calls per IP per UTC day") and the trailing docs URL/price could be trimmed, but every clause carries information.

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 an output schema present, return values need not be detailed, and the description only briefly notes "Returns converted subtitles." For an 11-parameter transformation tool it covers the remaining risks an agent must know: size/time caps, edge-case clamping, invalid-input signal, and cost.

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 schema already defines all 11 parameters and the baseline is 3. The description still adds real meaning by explaining the intent of the two easily confused flags (srt_speaker_labels for whole-cue VTT names in SRT, literal_segment_text for plain segments to VTT) and the ordering interaction of scale-then-shift on timing.

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?

The first sentence gives a specific verb (convert) plus the exact resource formats (SRT, WebVTT, JSON) and the secondary capability (scale or shift timing). It repeatedly names the sibling it is not (transcribe_audio for audio-to-subtitles), so an agent can route without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use an alternative ("To make subtitles from audio use transcribe_audio") and further routes sub-cases to the srt_speaker_labels and literal_segment_text flags. This is when-to-use plus when-to-use-something-else guidance, not just an implied purpose.

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