Skip to main content
Glama

Search captions

search_captions
Read-only

Finds where a phrase is spoken in caption files and returns each matching cue with timestamps, plus optional surrounding lines for locating soundbites or quotes.

Instructions

Find where something is said: returns every matching cue with its timestamp, optionally with surrounding lines. Great for finding soundbites or a quote in a long interview, podcast or talk.

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": {
      "query": "<query>"
    },
    "name": "search_captions"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoLocal caption file (.srt, .vtt, .ass/.ssa, .json). ~ is expanded.
queryYes
regexNoTreat query as a regular expression.
formatNoInput format. Detected automatically when omitted.
contentNoCaption text, if you don't have a file.
contextNoNeighboring cues to include on each side.
whole_wordNo
max_resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds useful return-shape context (matching cues with timestamps, optional surrounding lines), but says nothing about result limits, ordering, or how max_results/whole_word affect behavior.

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?

Two tight sentences, front-loaded with the core action and return value, then the use case. No wasted wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter tool with no output schema, the description covers purpose and rough return shape but leaves key behavioral details (result caps, regex/whole-word semantics, ordering) unaddressed. Adequate but with clear gaps.

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 63%, and the description only implicitly touches the 'context' parameter ('surrounding lines'). It adds no meaning for regex, whole_word, max_results, format, path, or content, leaving several parameters documented only thinly or not at all in the schema.

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 ('Find where something is said') and describes the return shape ('every matching cue with its timestamp, optionally with surrounding lines'). This clearly distinguishes it from siblings like extract_transcript (full transcript) or captions_from_words (generation).

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 a clear use context ('finding soundbites or a quote in a long interview, podcast or talk'), which tells the agent when this tool shines. It stops short of naming alternatives or when-not-to-use conditions, so it is not a full 5.

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