Skip to main content
Glama

search_transcript

Find where a word or phrase is spoken in a YouTube video and return timestamped matches to jump to the relevant part of a long transcript.

Instructions

Find where a word or phrase is spoken in a video.

Returns timestamped matches so the model can jump straight to the relevant part of a long video with get_transcript_range.

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

Input Schema

NameRequiredDescriptionDefault
queryYesCase-insensitive text to find inside the transcript.
videoYesYouTube URL (watch, youtu.be, /shorts/, /live/, /embed/) or an 11-character video ID.
contextNoNumber of neighbouring caption lines to include around each hit (0-3).
languageNoBCP-47 caption language code, e.g. 'en', 'fr', 'es', 'de', 'ja'. Empty = server default ('en').
max_resultsNoMaximum number of matches to return (1-50).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the burden; it does disclose the return shape (timestamped matches) and hints the operation is a lookup, but says nothing about failure modes such as videos without captions, language fallback behavior, or whether matching is substring vs word-boundary. Useful but incomplete behavioral context for a no-annotation tool.

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 short sentences, purpose first, then output description and next-step pointer. No filler or redundancy.

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?

An output schema exists, so return values needn't be spelled out, and parameters are fully documented in the schema. Only the missing guidance on caption availability/language fallback and empty-result handling keeps it from full completeness.

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%, including query case-sensitivity, video URL/ID formats, context range 0-3, language codes, and max_results bounds. The description adds no parameter meaning beyond the schema, so the baseline 3 applies.

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 precise verb and resource: 'Find where a word or phrase is spoken in a video.' It also scopes the output ('timestamped matches') and names the follow-up tool (get_transcript_range), so an agent can distinguish it from full-transcript and range siblings without inspecting schemas.

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 clear situational context: use it to locate a spot in a long video, then call get_transcript_range for the surrounding content. That encodes the intended search-then-fetch workflow, but there is no explicit exclusion (e.g. when to prefer get_transcript over searching, or what to do if the phrase is absent).

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