Skip to main content
Glama

set_youtube_captions

DestructiveIdempotent

Set or replace subtitles (WebVTT) of a YouTube video for one language. Source: vtt text, an https URL, or the library entry's subtitles (library_slug).

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_id": "<video_id>",
      "language": "<language>"
    },
    "name": "set_youtube_captions"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNohttps URL of a WebVTT file
vttNoSubtitle content as WebVTT text
nameNotrack name, default Deutsch/English
languageYese.g. de, en
video_idYesID of the video
channel_idNoYouTube channel id (UC…) from list_youtube_channels; optional when only one channel is connected
library_slugNoSlug of the library entry whose subtitles are used

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / library_slug / description
      Added value: +"Slug of the library entry whose subtitles are used"
    • addedInput schema / properties / url / description
      Added value: +"https URL of a WebVTT file"
    • addedInput schema / properties / video_id / description
      Added value: +"ID of the video"
    • addedInput schema / properties / vtt / description
      Added value: +"Subtitle content as WebVTT text"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description corroborates this by saying 'Set or replace' and itemizing the accepted sources. It does not disclose what happens when no source is supplied, whether an existing track for that language is deleted, or what permissions/channel scope are required, so added value beyond annotations is modest.

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 with the write action and scope front-loaded, followed by a compact source list. No filler or redundancy.

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

Completeness3/5

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

For a destructive 7-parameter tool with no output schema, the definition covers what is written and where it comes from, but omits the source-exclusivity rule and the behavior when the source is absent. An agent could still call it, but edge cases remain ambiguous.

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 genuinely adds meaning by grouping vtt, url, and library_slug as alternative content sources — a relationship the flat schema does not express. It still leaves the exclusive-one-source rule implicit.

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?

The description states a specific verb and resource ('Set or replace subtitles (WebVTT) of a YouTube video') and constrains scope to 'one language'. It is clearly distinguishable from the neighboring upload/update video tools, though it does not name any sibling to contrast with.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It implies usage through the enumerated content sources (vtt text, an https URL, or library_slug), which tells an agent how to supply subtitles, but never states when to prefer one source over another or that they are mutually exclusive. No explicit when-to-use versus alternative guidance is given.

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.