Skip to main content
Glama

Read an SRT caption file

parse_srt_file
Read-onlyIdempotent

Reads .srt or simple .vtt caption files and returns start/end/text segments in seconds, plus counts and diagnostics for skipped or problematic cues.

Instructions

Read an .srt (or simple .vtt) caption file and return its captions as {start, end, text} segments in seconds, plus count, duration, skipped blocks with reasons and problems (ordering, overlaps, empty text). Reads the file directly; Premiere is not needed. Use list_caption_tracks for captions already on a sequence.

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": {
      "file_path": "<file_path>"
    },
    "name": "parse_srt_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum segments returned. Default: all (count still reports every segment).
file_pathYesThe caption file. Absolute path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered; the description goes further by disclosing that parsing is tolerant — bad blocks are skipped with reasons and problems (ordering, overlaps, empty text) are reported rather than thrown as errors. It also discloses the full return payload, which is the main behavioral unknown for a parser.

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, front-loaded with the resource and output shape, then the file-vs-sequence routing hint. Every clause carries information an agent needs; nothing is repeated from the title or annotations.

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 compensates by naming the exact returned fields and the diagnostic fields (skipped blocks, problems). For a two-parameter read tool with full annotation coverage, nothing an agent needs in order to call it correctly is missing.

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 description coverage is 100% and the limit parameter's behavior (count still reports every segment) is already documented in the schema itself, so the description adds little parameter-level meaning. Baseline 3 applies when the schema carries the parameter burden.

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 ("Read an .srt (or simple .vtt) caption file") and immediately specifies the return shape as {start, end, text} segments in seconds plus count, duration, skipped blocks and problems. This is enough to distinguish it from list_caption_tracks and from the write/shift siblings 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 scopes the tool to files read directly from disk ("Premiere is not needed") and names the alternative with its selecting condition: "Use list_caption_tracks for captions already on a sequence." That is a clear when-to-use / when-not-to-use routing rule, not an implied one.

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