Skip to main content
Glama

yt_update_video

Idempotent

Partially update an existing YouTube video’s metadata, visibility, schedule, or custom thumbnail while preserving omitted fields. Use dry-run previews and channel-owner OAuth to avoid unintended changes.

Instructions

Perform a partial, idempotent update on an existing YouTube video's metadata, visibility, schedule, or custom thumbnail in YouTube Studio via YouTube Data API v3 (videos.list + videos.update, costs ~51 quota units). Requires channel-owner OAuth2. Fetches current snippet/status first so omitted parameters (title, description, tags, privacy_status, publish_at) are preserved unchanged rather than cleared. Setting publish_at automatically forces privacy_status='private' as required by YouTube's scheduling API. When privacy_status or publish_at is set, contains_synthetic_media is required (true or false): YouTube can't read the current disclosure back and a status update may reset it. Title and description must not contain '<' or '>' (write 'over 75%', not '>75%'). Returns {videoId, studioUrl, updatedFields}.

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

Input Schema

NameRequiredDescriptionDefault
tagsNoReplacement list of YouTube SEO keyword tags. Leave omitted to keep existing tags.
titleNoNew video title (1–100 characters). Leave omitted to keep existing title.
dry_runNoIf true, change nothing: return only the fields that would be updated, with the schedule in local time and any warnings.
video_idYes11-character YouTube video ID to update.
publish_atNoFuture ISO 8601 timestamp with timezone offset to schedule publication (e.g. '2026-11-05T17:00:00+01:00'). Forces privacy_status='private'.
descriptionNoNew video description (up to 5,000 characters). Leave omitted to keep existing description.
privacy_statusNoUpdated visibility status. Ignored and forced to 'private' if publish_at is provided.
thumbnail_pathNoOptional absolute local filesystem path to a readable PNG/JPG image (<=50MB) to upload via thumbnails.set.
contains_synthetic_mediaNoSet the YouTube altered/synthetic media disclosure (status.containsSyntheticMedia). Required whenever privacy_status or publish_at is set; otherwise leave omitted to leave the existing disclosure untouched.

Output Schema

NameRequiredDescriptionDefault
videoIdYes
studioUrlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.10.0
    • changedInput schema / properties / contains_synthetic_media / description
      Previous value: -"Set the YouTube altered/synthetic media disclosure (status.containsSyntheticMedia). Leave omitted to leave the existing disclosure untouched."New value: +"Set the YouTube altered/synthetic media disclosure (status.containsSyntheticMedia). Required whenever privacy_status or publish_at is set; otherwise leave omitted to leave the existing disclosure untouched."
    • changedInput schema / properties / thumbnail_path / description
      Previous value: -"Optional absolute local filesystem path to a readable PNG/JPG image (<=2MB) to upload via thumbnails.set."New value: +"Optional absolute local filesystem path to a readable PNG/JPG image (<=50MB) to upload via thumbnails.set."
    • changedOutput schema / required
      Previous value: -[
      -  "videoId",
      -  "studioUrl"
      -]New value: +[
      +  "videoId"
      +]
  2. Changed2 schema fields changedv0.6.0
    • addedInput schema / properties / contains_synthetic_media
      Added value: +{
      +  "description": "Set the YouTube altered/synthetic media disclosure (status.containsSyntheticMedia). Leave omitted to leave the existing disclosure untouched.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": false,
      +  "description": "If true, change nothing: return only the fields that would be updated, with the schedule in local time and any warnings.",
      +  "type": "boolean"
      +}
  3. Changed11 schema fields changedv0.2.0
    • changedInput schema / properties / description / description
      Previous value: -"New video description (up to 5000 characters)."New value: +"New video description (up to 5,000 characters). Leave omitted to keep existing description."
    • addedInput schema / properties / description / maxLength
      Added value: +5000
    • changedInput schema / properties / privacy_status / description
      Previous value: -"Updated visibility status in YouTube Studio."New value: +"Updated visibility status. Ignored and forced to 'private' if publish_at is provided."
    • changedInput schema / properties / publish_at / description
      Previous value: -"ISO 8601 schedule time (e.g. '2026-11-05T17:00:00+01:00')."New value: +"Future ISO 8601 timestamp with timezone offset to schedule publication (e.g. '2026-11-05T17:00:00+01:00'). Forces privacy_status='private'."
    • changedInput schema / properties / tags / description
      Previous value: -"Updated list of YouTube SEO keyword tags."New value: +"Replacement list of YouTube SEO keyword tags. Leave omitted to keep existing tags."
    • changedInput schema / properties / thumbnail_path / description
      Previous value: -"Optional absolute path to new thumbnail image."New value: +"Optional absolute local filesystem path to a readable PNG/JPG image (<=2MB) to upload via thumbnails.set."
    • changedInput schema / properties / title / description
      Previous value: -"New video title (up to 100 characters)."New value: +"New video title (1–100 characters). Leave omitted to keep existing title."
    • addedInput schema / properties / title / maxLength
      Added value: +100
    • changedInput schema / properties / video_id / description
      Previous value: -"11-character YouTube video ID."New value: +"11-character YouTube video ID to update."
    • addedInput schema / properties / video_id / pattern
      Added value: +"^[A-Za-z0-9_-]{11}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "studioUrl": {
      +      "type": "string"
      +    },
      +    "videoId": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "videoId",
      +    "studioUrl"
      +  ],
      +  "type": "object"
      +}
  4. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=true), and the description adds substantial context beyond them: quota cost (~51 units), OAuth requirement, fetch-then-merge preservation semantics, the publish_at→private forcing behavior, and why contains_synthetic_media must be supplied. These are exactly the non-obvious behaviors an agent needs before mutating a live video.

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?

Front-loaded with the core action, then layered with prerequisites, preservation semantics, and edge-case constraints — no filler. It is dense and sentence-heavy, which slightly hurts scanability, but every sentence carries operational information.

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?

For a 9-parameter mutation tool with an output schema present, the description covers preconditions, merge behavior, conditional requirements, quota cost, and return shape ({videoId, studioUrl, updatedFields}). Nothing an agent needs to call this correctly is missing.

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 genuine meaning: it explains that omitted parameters are preserved rather than cleared, documents the '<'/'>' character restriction on title and description that the schema does not mention, and explains the rationale for contains_synthetic_media. That lifts it above the schema-only baseline.

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?

States a specific verb and resource — 'partial, idempotent update on an existing YouTube video's metadata, visibility, schedule, or custom thumbnail' — and even names the underlying API calls (videos.list + videos.update). An agent can immediately distinguish this from yt_upload_draft or yt_delete_video.

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?

Clear context is given: it operates on an existing video, requires channel-owner OAuth2, and fetches current state first so partial updates don't clear fields. It also states the conditional rule that contains_synthetic_media is required when privacy_status or publish_at is set. It stops short of explicitly naming sibling alternatives (e.g. yt_upload_draft for new content, yt_delete_video for removal) or stating when-not to use it.

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