Skip to main content
Glama

Caption file info

caption_info
Read-only

Summarizes caption files by reporting format, cue count, time span, word count, speaking and reading rates, cue and line stats, formatting tags, parse warnings, and a short preview.

Instructions

Summarize a caption file: detected format, cue count, time span, word count and speaking rate, average/max reading speed (characters per second), shortest/longest cue, longest line, lines per cue, formatting tags, and parse warnings. Shows the first few cues.

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

Input Schema

NameRequiredDescriptionDefault
pathNoLocal caption file (.srt, .vtt, .ass/.ssa, .json). ~ is expanded.
formatNoInput format. Detected automatically when omitted.
contentNoCaption text, if you don't have a file.
previewNoHow many cues to preview.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

readOnlyHint=true already establishes the safety profile, and the description goes beyond it by disclosing what the result contains, including that only the first few cues are previewed rather than the whole file. It stops short of stating error behavior for missing files or the mutual exclusivity of path and content, so a 4 rather than a 5.

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?

Two sentences, front-loaded with the action and purpose before the metric list, and the 'Shows the first few cues' qualifier usefully caps expectations about output volume. The metric enumeration is long but each item is a distinct return field and earns its place.

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 no output schema, the description carries the burden of describing return values and does so thoroughly, covering both the aggregate statistics and the preview. The one gap is that all four parameters are optional and the description never states that a path or content must be supplied for the call to be meaningful.

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%, with per-parameter descriptions for path (formats and ~ expansion), format (auto-detected when omitted) and preview (cue count). The description adds nothing beyond the schema except restating 'Shows the first few cues', which corresponds to the already-documented preview parameter, so the baseline 3 applies.

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?

The description opens with a specific verb+resource ('Summarize a caption file') and enumerates the exact signals produced (cue count, time span, reading speed, parse warnings), so an agent can tell this is an inspection/diagnostic tool rather than a transform like convert_captions or reflow_captions. It never names a sibling to differentiate against, which keeps it short of a 5.

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?

Usage is only implied: the diagnostics listed (parse warnings, formatting tags, reading speed) suggest it is the tool to reach for before cleaning or linting. There is no explicit 'use this when…' statement, no mention of when lint_captions or extract_transcript would be a better fit, and no guidance on choosing file input vs inline content.

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