Skip to main content
Glama

Search Video Transcript

search_video_transcript
Read-onlyIdempotent

Search public video captions for case-insensitive keywords or exact phrases and return timestamped matches with context, so you can verify quotes or jump to topics without reading the full transcript.

Instructions

Search case-insensitive keywords or exact phrases inside a public video's captions via Vidleaf (https://vidleaf.app) and return timestamped matches with surrounding context lines. Use when verifying exact quotes, locating specific topics, or jumping to timestamps in long lectures without loading the entire transcript. For full-transcript reading or summarization, use read_video_transcript instead.

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": {
      "url": "<url>",
      "keywords": "<keywords>"
    },
    "name": "search_video_transcript"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic video URL, Bilibili BV ID, or mobile share text.
langNoOptional subtitle track language code; defaults to primary track.
limitNoMaximum matches to return (1–100).
localeNoOptional Vidleaf UI locale for `open_url`.
offsetNoZero-based hit offset for paginating large result sets.
contextNoNumber of neighboring subtitle lines (0–3) to include before and after each match.
keywordsYes1 to 10 keywords or exact phrases (each <= 80 chars) to match against captions.

Output Schema

NameRequiredDescriptionDefault
hitsYesTimestamped caption matches.
langNoSearched subtitle track language.
titleNoSource video title.
statusYesSearch outcome.
messageNoDiagnostic or ASR confirmation guidance when applicable.
has_moreYesWhether additional hits exist past `offset + limit`.
open_urlYesDirect Vidleaf deep-reading URL.
video_keyYesCanonical Vidleaf video identifier.
total_hitsYesTotal matching lines across the full track.
matched_keywordsNoKeywords that matched at least once.
missing_keywordsNoKeywords with zero matches.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the description is not obligated to restate safety. It adds real behavioral context beyond them: case-insensitive matching, phrase support, timestamped results with context lines, and the efficiency point that it avoids loading the entire transcript. It does not mention behavior with videos lacking captions or any rate limiting around the external Vidleaf service, keeping it short of 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.

Conciseness5/5

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

Two sentences, no filler: the first sentence front-loads what it does and what it returns, the second handles usage and routing to the sibling. Every clause carries information an agent needs.

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 7 parameters, an output schema present, and rich annotations, the description covers purpose, return shape, and tool selection adequately; return values need not be restated because an output schema exists. The one gap is failure behavior (e.g., a video with no captions, which is plausible given the 'public video' qualifier).

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%, so every one of the 7 parameters (url, keywords, lang, limit, offset, context, locale) is already documented in the schema, which sets the baseline at 3. The description adds only marginal semantic value through "case-insensitive" and "exact phrases" for keywords; it says nothing additional about context, offset, or limit beyond what the schema states.

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 description opens with a precise verb+resource pair ("search case-insensitive keywords or exact phrases inside a public video's captions") and states the return shape ("timestamped matches with surrounding context lines"). It explicitly contrasts with the sibling read_video_transcript, so an 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 Guidelines5/5

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

It names three concrete use cases (verifying exact quotes, locating topics, jumping to timestamps in long lectures) and names the alternative tool plus the condition that selects it ("For full-transcript reading or summarization, use read_video_transcript instead"). Both when-to-use and when-not-to-use are covered.

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