Skip to main content
Glama

get_transcript_range

Extracts only the transcript segment between two timestamps from a YouTube video, letting you fetch just the relevant section of long videos instead of the full transcript.

Instructions

Return only the part of a transcript between two timestamps.

Useful for long videos: fetch metadata/chapters, then pull just the relevant section instead of the whole transcript.

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>",
      "start_seconds": "<start_seconds>",
      "end_seconds": "<end_seconds>"
    },
    "name": "get_transcript_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
videoYesYouTube URL (watch, youtu.be, /shorts/, /live/, /embed/) or an 11-character video ID.
formatNoOutput format: text | timestamped | markdown | srt | vtt | json (default: text).timestamped
languageNoBCP-47 caption language code, e.g. 'en', 'fr', 'es', 'de', 'ja'. Empty = server default ('en').
end_secondsYesEnd of the range, in seconds from the beginning.
start_secondsYesStart of the range, in seconds from the beginning.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It conveys that this is a scoped read ('return ... only the part') and frames it inside a larger workflow, which is useful. It says nothing about behavior at the edges: what happens if the range exceeds the video length, whether timestamps are clamped, or how missing captions are handled.

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, front-loaded with the action and its scope, then the workflow rationale. No filler or restated field names.

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 and parameters are fully documented, so the description only needs to justify the tool's existence and usage, which it does. The remaining gap is boundary behavior on out-of-range timestamps, plus the noted mismatch where the schema's stated default for 'format' ('timestamped') differs from the prose default ('text').

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 parameter is already documented in the schema, including that seconds are 'from the beginning.' The description adds no syntax, rounding, or ordering constraints for start/end beyond that, 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?

States a specific verb and resource with explicit scope: 'Return only the part of a transcript between two timestamps.' The phrase 'instead of the whole transcript' implicitly separates it from a full-transcript sibling, but it never names that sibling, so differentiation requires a small inference.

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 concrete when-to-use condition ('long videos') and a recommended two-step workflow (fetch metadata/chapters, then pull the relevant section). It stops short of naming the actual sibling tools to call first or stating when this tool is the wrong choice (e.g., short videos, search-by-keyword use cases).

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