Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
YT_DLP_COOKIESNoPath to the cookies file for authentication (optional). If not set, the server will try to use browser cookies (local only) or direct calls.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
extract_subtitlesA

从视频 URL 提取字幕。 支持平台:YouTube、Bilibili 返回:完整字幕文本,包含时间戳

认证配置(按优先级):

  1. cookies_file 参数

  2. YT_DLP_COOKIES 环境变量

  3. 浏览器 cookies(仅本地环境)

参数:

  • url: 视频链接 (必填)

  • lang: 首选字幕语言,如 'zh', 'en', 'ja' (可选,默认自动检测)

  • format: 输出格式 'text' (纯文本) 或 'srt' (带时间戳) (可选,默认 'srt')

  • cookies_file: cookies 文件路径,用于认证需要登录的视频 (可选)

search_timestampA

在字幕中搜索关键词,返回匹配的时间戳位置。 用于快速定位视频中提到某个话题的时间点。

认证配置(按优先级):

  1. cookies_file 参数

  2. YT_DLP_COOKIES 环境变量

  3. 浏览器 cookies(仅本地环境)

参数:

  • url: 视频链接 (必填)

  • keywords: 要搜索的关键词列表 (必填)

  • context_lines: 返回匹配位置前后的上下文行数 (可选,默认 2)

  • cookies_file: cookies 文件路径,用于认证需要登录的视频 (可选)

get_video_infoA

获取视频的基本信息,包括标题、时长、描述等。

认证配置(按优先级):

  1. cookies_file 参数

  2. YT_DLP_COOKIES 环境变量

  3. 浏览器 cookies(仅本地环境)

参数:

  • url: 视频链接 (必填)

  • cookies_file: cookies 文件路径,用于认证需要登录的视频 (可选)

list_available_subtitlesA

列出视频可用的所有字幕语言。 用于了解视频有哪些字幕可以提取。

认证配置(按优先级):

  1. cookies_file 参数

  2. YT_DLP_COOKIES 环境变量

  3. 浏览器 cookies(仅本地环境)

参数:

  • url: 视频链接 (必填)

  • cookies_file: cookies 文件路径,用于认证需要登录的视频 (可选)

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 4 tools

Disambiguation2/5

The extract_subtitles tool has a 'get_video_info' parameter that overlaps with the separate get_video_info tool, causing ambiguity. Additionally, extract_subtitles and search_timestamp both involve subtitle content but with different purposes, though this is less problematic.

Naming Consistency5/5

All tool names use consistent snake_case and follow a verb_noun pattern (extract_subtitles, get_video_info, list_available_subtitles, search_timestamp), making them predictable.

Tool Count5/5

With 4 tools covering extraction, listing, info retrieval, and searching, the count is appropriate for the server's subtitle analysis purpose, neither too many nor too few.

Completeness4/5

The set covers core subtitle analysis operations, but missing features like subtitle translation or editing are minor gaps given the 'analyzer' focus. The inclusion of format options and search is good.

Maintenance

ActivityInactive
ResponsivenessNo issues