Skip to main content
Glama
YouTubeMCP
by imrees

Update captions

update_captions
DestructiveIdempotent

Replace a caption track’s SRT/VTT file or set it as draft/published. Use it to update caption content or approval state when YouTube cannot rename the track or change its language.

Instructions

Replace a caption track's file and/or change its draft status. YouTube's API cannot rename a track or change its language. Two-step approval.

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>",
      "caption_id": "<caption_id>"
    },
    "name": "update_captions"
  }
}

Input Schema

NameRequiredDescriptionDefault
is_draftNoSet draft (true) or published (false).
video_idYesYouTube video ID (11 characters) or any youtube.com / youtu.be URL.
file_pathNoNew .srt/.vtt file to replace the track's captions.
caption_idYesCaption track ID from list_captions.
verify_contentNoAfter replacing the file, download the track and compare its text (extra 200 quota units).
confirmation_tokenNoToken from the preview. Only pass it after the user has explicitly approved the preview.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely new context: the API cannot rename a track or change its language, and the operation requires two-step approval via a token. It does not say what happens to the previous caption content once replaced.

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?

Three short sentences, front-loaded with the action, then constraints, then workflow. No filler and nothing that restates the title.

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 destructive mutation with an output schema, the description covers the action, the API limitations, and the approval gate, which is most of what an agent needs. The remaining gap is the absence of any note on the preview step that produces the confirmation token, leaving the workflow slightly open-ended.

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 each of the six parameters is already documented, including the confirmation_token and verify_content quota note. The description adds only the high-level approval sequencing ('two-step approval') on top of that, which is the expected baseline when the schema does the heavy lifting.

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 first sentence names a specific verb and resource: replacing a caption track's file and/or toggling its draft status. It is clearly distinct from list/download/upload siblings by the word 'replace'. It stops short of explicitly naming upload_captions as the alternative for new tracks.

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?

'Two-step approval' implies a preview-then-confirm workflow, which is real guidance, and the exclusion of renaming/language changes tells the agent what not to attempt here. However, it never states when to choose this over upload_captions or update_metadata, and the preview tool that issues the token is not identified.

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