Skip to main content
Glama

get_transcript_segment

Read-only

Returns the timed transcript passage around a video moment with surrounding context and jump links. Use it to verify or expand a quote before citing it.

Instructions

Return the timed passage around a moment in a video, with nearby context and jump links.

Use it to verify or expand a quote before citing it.

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": {
      "start_ms": "<start_ms>"
    },
    "name": "get_transcript_segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
videoNoVideo URL or ID, if no version is known.
end_msNoEnd of the passage; defaults to start + 60 s.
versionNoTranscript version such as 'tr_12' (preferred).
languageNoLanguage code such as 'en' or 'pt-BR'. Omit to use the spoken language.
start_msYesStart of the passage in milliseconds.
context_msNoExtra context on each side.

Output Schema

NameRequiredDescriptionDefault
titleYes
end_msYes
originYes
versionYes
languageYes
segmentsYes
start_msYes
video_idYes
truncatedYesTrue if the window held more segments than the response limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds that results include surrounding context and jump links, which is useful behavioral detail, but it says nothing about the cost of large context_ms values, size limits, or what happens when the requested passage is missing.

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 what is returned and followed by the one workflow it serves. No redundant restatement of the name, schema, or annotations.

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?

For a six-parameter read-only tool with full schema coverage and an output schema, the description covers purpose and citation use case adequately. The main open question—how video/version/language interact and when to prefer get_transcript—is not addressed, keeping it short of complete.

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 (video, version, language, start_ms, end_ms, context_ms) is already documented with defaults and bounds. The description's 'around a moment' and 'nearby context' loosely echo start_ms and context_ms but add no syntax or precedence guidance beyond the schema.

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: 'Return the timed passage around a moment in a video', plus what the payload contains (nearby context and jump links). It is clear what the tool does, but it never names or contrasts with the sibling 'get_transcript', which is the obvious alternative for retrieving transcript text.

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 an explicit use case: verify or expand a quote before citing it, which anchors the tool to a citation workflow. There is no statement of when not to use it, nor a pointer to get_transcript for full-text retrieval, so routing between the two is left to inference.

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