Skip to main content
Glama

срезAI — MCP-сервер и поисковый API для ИИ-агентов

Субтитры YouTube / YouTube transcripts

yt_srt
Read-onlyIdempotent

Возвращает текст ролика YouTube по ссылке: субтитры (ручные или автоматические) с таймкодами, окном from/to и лимитом символов. До 5 роликов за вызов, как map/crawl - текстом, а не JSON.

Когда: нужен текст, конспект или цитата из видео - «о чём ролик», «что сказали на 12-й минуте», «найди в лекции кусок про X». Тогда transcript приходит в контекст целиком: видео не скачивается, распознавание речи идёт не на вашей стороне. Когда не: нужен факт из ролика - verify_claim (проверяет утверждение по источникам); нужен текст статьи - read_url. Язык: languages - порядок приоритета (по умолчанию ru, en). Если ни одного из языков нет, пробуем автоматические субтитры. Ролик без субтитров вообще не читается: он не тарифицируется. Окно: from/to в СЕКУНДАХ от начала ролика - так берут узкий кусок длинной лекции вместо всего текста. maxChars ограничивает объём (от 200 до 200000); обрезка помечена в шапке. Возвращает: на каждый ролик - шапку (название, канал, длительность, язык и источник manual/auto, окно, число сегментов и символов) и текст; с timestamps: true каждая реплика начинается с [mm:ss] (для роликов от часа - [h:mm:ss]). Нечитаемые ролики идут блоками с кодом ошибки и не роняют остальные: частичный успех - норма. Цена: 15 кредитов за каждый успешно отданный ролик. Ролик без субтитров, приватный или прямой эфир не тарифицируется.

Returns the transcript of a YouTube video by link: subtitles (manual or automatic) with timecodes, a from/to window and a character limit. Up to 5 videos per call, as text, not JSON.

Use when: you need the text, summary or quote of a video - "what is this video about", "what was said at minute 12", "find the part about X". The transcript arrives in your context as-is: no video download, no speech recognition on your side. Do not use when: you need to check a fact from the video - verify_claim (it verifies a claim against sources); you need the text of an article - read_url. Language: languages is a priority list (default ru, en). If none of the requested languages exist, automatic subtitles are tried. A video with no subtitles at all cannot be read and is not charged. Window: from/to in SECONDS from the start - this is how a narrow slice of a long lecture is taken instead of the whole text. maxChars caps the volume (200 to 200000); a cut transcript is marked in the header. Returns: for each video - a header (title, channel, duration, language and manual/auto source, window, segment and character counts) and the text; with timestamps: true every line starts with [mm:ss] ([h:mm:ss] for videos of an hour or more). Unreadable videos come as blocks with an error code and do not break the rest: partial success is normal. Cost: 15 credits per transcript actually returned. A video with no subtitles, a private one or a live stream is not charged.

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": {
      "videos": "<videos>"
    },
    "name": "yt_srt"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoКонец окна, СЕКУНДЫ (до этой секунды). Должен быть больше from. / Window end, SECONDS (exclusive). Must be greater than from.
fromNoНачало окна, СЕКУНДЫ от начала ролика (по умолчанию 0). Для куска лекции укажите и from, и to. / Window start, SECONDS from the video start (default 0). For a slice of a lecture pass both from and to.
videosYesСсылки на ролики YouTube (1-5): https://youtu.be/ID или https://www.youtube.com/watch?v=ID. Дубликаты отбрасываются. / YouTube video links (1-5): https://youtu.be/ID or https://www.youtube.com/watch?v=ID. Duplicates are dropped.
maxCharsNoСколько символов текста на ролик (200-200000, по умолчанию 200000). Обрезанный текст помечен в шапке; продолжение берите окном from/to, а не offset - у субтитров окно по времени. / Characters of text per video (200-200000, default 200000). A cut transcript is marked in the header; continue with a from/to window, not an offset - subtitles are windowed by time.
languagesNoЯзыки субтитров в порядке приоритета (1-5, по умолчанию ru, en). Код вида ru, en, de; регистр и регион не важны (ru-RU станет ru). / Subtitle languages in priority order (1-5, default ru, en). Codes like ru, en, de; case and region do not matter (ru-RU becomes ru).
timestampsNotrue - каждая реплика начинается с таймкода [mm:ss] (для роликов от часа [h:mm:ss]). По умолчанию false: сплошной текст, он короче и дешевле по токенам. / true - every line starts with [mm:ss] ([h:mm:ss] for videos of an hour or more). Default false: plain text, shorter and cheaper in tokens.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed2 schema fields changed
    • changedInput schema / properties / maxChars / description
      Previous value: -"Сколько символов текста вернуть на ролик (200-50000, по умолчанию 12000)."New value: +"Сколько символов текста вернуть на ролик (200-200000, по умолчанию 12000). Длинный ролик собирается из нескольких окон сервиса автоматически: 200000 покрывает лекцию на 3-4 часа. Можно задать на всё соединение заголовком X-Srezai-Max-Chars или X-Srezai-Options."
    • changedInput schema / properties / maxChars / maximum
      Previous value: -50000New value: +200000
  4. Changed1 schema field changed
    • addedInput schema / properties / speakers
      Added value: +{
      +  "description": "true - разметить, кто когда говорит: реплики \"Спикер 1/2/3\" с таймкодами вместо сплошного текста. Разделение по смыслу реплик, а не по голосу; имён нет, метки условные. Дороже: 15 кредитов за ролик (вместо 1). Нужен ключ: в бесплатном режиме без ключа недоступно.",
      +  "type": "boolean"
      +}
  5. Changed6 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"Начало окна в секундах (для продолжения используйте next_from из ответа). / Window start in seconds (use next_from from the response for continuation)."New value: +"Начало окна в секундах (для продолжения используйте next_from из ответа)."
    • changedInput schema / properties / languages / description
      Previous value: -"Языки в порядке предпочтения, по умолчанию [\"ru\", \"en\"]. Ручная дорожка предпочтительнее авто. Если нужного языка нет - вернём доступные. / Languages in preference order, default [\"ru\", \"en\"]. Manual tracks are preferred over auto; if the requested one is missing, available ones are returned."New value: +"Языки в порядке предпочтения, по умолчанию [\"ru\", \"en\"]. Ручная дорожка предпочтительнее авто. Если нужного языка нет - вернём доступные."
    • changedInput schema / properties / maxChars / description
      Previous value: -"Сколько символов текста вернуть на ролик (200-50000, по умолчанию 12000). / Characters of text per video (200-50000, default 12000)."New value: +"Сколько символов текста вернуть на ролик (200-50000, по умолчанию 12000)."
    • changedInput schema / properties / timestamps / description
      Previous value: -"true - вернуть фрагменты с таймкодами вместо сплошного текста (дороже по контексту; для навигации по длинному ролику). / true - return timestamped fragments instead of continuous text."New value: +"true - вернуть фрагменты с таймкодами вместо сплошного текста (дороже по контексту; для навигации по длинному ролику)."
    • changedInput schema / properties / to / description
      Previous value: -"Конец окна в секундах. / Window end in seconds."New value: +"Конец окна в секундах."
    • changedInput schema / properties / videos / description
      Previous value: -"Ссылки на ролики YouTube или их id (до 5 за вызов). Формы: watch?v=, youtu.be/, shorts, embed, live, голый 11-символьный id. / YouTube video URLs or ids (up to 5 per call)."New value: +"Ссылки на ролики YouTube или их id (до 5 за вызов). Формы: watch?v=, youtu.be/, shorts, embed, live, голый 11-символьный id."
  6. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare the safe read-only, idempotent, open-world profile, yet the description still adds substantial behavioral detail: 15-credit pricing per returned transcript, the explicit list of uncharged cases (no subtitles, private, live), language fallback to auto subtitles, truncation marked in the header, and partial-success semantics for unreadable videos. The only minor gap is that it does not say what happens when all 5 videos fail, though the partial-success sentence largely covers it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

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

Content is front-loaded into labelled sections (Когда / Язык / Окно / Возвращает / Цена) so an agent can scan for the relevant part quickly, and every block carries operational information. The full Russian/English duplication roughly doubles the length, which is the main cost against conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, but the description fully specifies the return shape: a per-video header with title, channel, duration, language, manual/auto source, window, segment and character counts, plus the timestamp format and the error-block behavior. For a 6-parameter batch tool this leaves nothing an agent needs to guess.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: languages is described as a priority list whose exhaustion triggers automatic-subtitle fallback, and maxChars truncation is paired with the guidance to continue via a from/to window rather than an offset. That is genuine semantic value beyond the field descriptions.

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 opening sentence names a specific verb and resource ('Возвращает текст ролика YouTube по ссылке') and immediately scopes it with subtitles type, window and character limit. It is unmistakably distinct from read_url (articles) and verify_claim (fact checking), both named later in the same text.

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?

The description contains explicit 'Когда' / 'Когда не' sections with concrete example phrasings ('о чём ролик', 'что сказали на 12-й минуте') and routes the agent away to verify_claim and read_url for the two nearest competing needs. Nothing about when to select this tool 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.