Skip to main content
Glama
tuitamogamer-gpt

youtube-mcp-server

Update Caption Track

youtube_update_caption

Update YouTube caption track draft status or replace its content by providing caption ID and optionally a new file path.

Instructions

Update an existing caption track's draft status and/or replace its content.

When filePath is supplied the caption file is replaced by streaming the new file from disk. When only isDraft is supplied only the metadata is updated (no file replacement).

Args

  • captionId (string, required): The ID of the caption track to update.

  • isDraft (boolean, optional): New draft state. Omit to leave unchanged.

  • filePath (string, optional): Absolute local path to a replacement caption file. When provided, the track content is replaced.

Returns

{
  "id": "string",
  "language": "string",
  "name": "string",
  "trackKind": "string",
  "isDraft": boolean
}

Examples

  • Publish a draft track: captionId="AYtvM...", isDraft=false

  • Replace content: captionId="AYtvM...", filePath="/updated/en.vtt"

  • Replace and publish: captionId="AYtvM...", isDraft=false, filePath="/updated/en.vtt"

Errors

  • 403: You can only update captions on your own channel. Check scopes (youtube.force-ssl).

  • 404: Caption track not found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
captionIdYesThe ID of the caption track to update.
isDraftNoNew draft state. Omit to leave the current value unchanged.
filePathNoAbsolute local path to a replacement caption file. When provided, replaces the track's content.
Behavior4/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, consistent with the update operation. The description adds that file replacement happens via streaming from disk, and that updating only isDraft is a metadata-only change. No contradictions; the description adds useful behavioral context beyond annotations.

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?

The description is well-structured: a concise summary, detailed explanation, separate Args/Returns/Examples/Errors sections. Every sentence adds value, and the most important information is front-loaded.

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?

Despite no output schema, the description provides a JSON example of the return value. It covers all 3 parameters, includes error handling, and gives examples covering key use cases. An agent can confidently use the tool based on this description.

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?

Input schema coverage is 100%, so baseline is 3. The description adds value by explaining the behavioral implications of using isDraft vs filePath, and includes examples. This goes beyond repeating schema 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 description clearly states the action: update an existing caption track's draft status and/or replace its content. It specifies the resource (caption track) and distinct actions, distinguishing it from siblings like upload_caption (create) and delete_caption (delete).

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?

The description provides clear context on when to use filePath vs isDraft, and includes examples for different scenarios. It also lists error codes (403, 404) indicating prerequisites, but does not explicitly contrast with sibling tools like upload or delete.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tuitamogamer-gpt/youtube-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server