Skip to main content
Glama

Upload a video

upload_video

Upload a video to YouTube from a local file or public URL with resumable, checkpointed progress, then schedule publishing, set a thumbnail, add playlists, and attach captions in one call.

Instructions

Upload a video file from this computer (file_path) or a public URL to YouTube with a resumable, checkpointed upload that survives network drops and restarts. Optionally schedule it (publish_at), set a thumbnail, add it to playlists and attach captions in the same call. Runs in the background: returns a job_id right away (or the finished video if it completes within wait_seconds). Poll get_upload_status. Private uploads start immediately; public, unlisted and scheduled uploads need the user’s confirmation first. Tip: write metadata first (generate_metadata, then preview_metadata).

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": {
      "title": "<title>"
    },
    "name": "upload_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) URL to download the video from instead of a file.
tagsNoTags (total under 500 characters).
titleYesVideo title (max 100 characters; about 70 show on mobile).
ab_testNoStart an A/B test the day after the video goes live (needs public, unlisted or publish_at). Variant i pairs titles[i] with thumbnail_paths[i].
channelNoWhich connected channel: channel ID (UC...), @handle or name. Omit to use the default channel.
licenseNo
privacyNoprivate (default), unlisted or public.private
templateNoTemplate name from list_templates (adds title format, footer, tags, hashtags, playlists).
file_pathNoAbsolute path to the video on this computer, e.g. ~/Videos/recap.mp4.
playlistsNoPlaylist ids or exact names to add the video to.
embeddableNo
publish_atNoSchedule: ISO 8601 date-time when the video goes public. Uploads as private until then.
category_idNoYouTube category id, e.g. 22 People & Blogs, 27 Education, 28 Science & Technology. See list_categories.
descriptionNoDescription. Template header/footer/hashtags are added automatically.
wait_secondsNoWait this long for the upload before returning the job status.
captions_pathNo.srt or .vtt captions file to attach.
made_for_kidsNoCOPPA: is this video made for kids? Defaults to false (or the template value).
recording_dateNoISO date the video was recorded.
thumbnail_pathNoJPG/PNG up to 2 MB to set as the custom thumbnail after upload.
default_languageNoLanguage of title/description, e.g. "en".
captions_languageNoCaptions language, e.g. "en". Defaults to default_audio_language or "en".
confirmation_tokenNoOnly after the user approved: the confirmation_token returned by the previous call with identical arguments.
notify_subscribersNo
default_audio_languageNoSpoken language, e.g. "en", "hi".
contains_synthetic_mediaNoAltered or synthetic content disclosure: true if realistic content was made or altered with AI.
create_missing_playlistsNoCreate (private) playlists named in `playlists` that do not exist yet.
has_paid_product_placementNoPaid promotion disclosure: true if the video contains paid product placement, sponsorship or endorsement.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.1.0
    • addedInput schema / properties / ab_test
      Added value: +{
      +  "description": "Start an A/B test the day after the video goes live (needs public, unlisted or publish_at). Variant i pairs titles[i] with thumbnail_paths[i].",
      +  "properties": {
      +    "auto_apply_winner": {
      +      "default": true,
      +      "type": "boolean"
      +    },
      +    "days": {
      +      "default": 14,
      +      "maximum": 60,
      +      "minimum": 6,
      +      "type": "integer"
      +    },
      +    "metric": {
      +      "default": "views",
      +      "enum": [
      +        "views",
      +        "watch_time",
      +        "avg_view_percentage",
      +        "avg_view_duration",
      +        "subscribers",
      +        "engagement"
      +      ],
      +      "type": "string"
      +    },
      +    "thumbnail_paths": {
      +      "description": "Alternative thumbnails to test against thumbnail_path.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "maxItems": 3,
      +      "type": "array"
      +    },
      +    "titles": {
      +      "description": "Alternative titles (B, C, D) to test against the main title.",
      +      "items": {
      +        "maxLength": 100,
      +        "type": "string"
      +      },
      +      "maxItems": 3,
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / has_paid_product_placement
      Added value: +{
      +  "description": "Paid promotion disclosure: true if the video contains paid product placement, sponsorship or endorsement.",
      +  "type": "boolean"
      +}
  2. First observedv1.0.1

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false) by disclosing that the upload is resumable and checkpointed, that it runs in the background returning a job_id, and that confirmation_token is required for non-private visibility. What it omits is failure/quota behavior and what happens if the job fails mid-upload, which is the remaining gap for a long-running mutation.

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?

Four sentences, front-loaded with the core action and sources, then scheduling extras, then the async return contract, then the precondition and tip. Dense but every sentence carries distinct information. Slightly over-packed in the second sentence where four optional behaviors are listed in one clause.

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 27-parameter, nested-object, no-output-schema tool, the description covers the essentials: source forms, the async return contract, how to poll, and the confirmation gate. Remaining gaps are peripheral (quota exhaustion, failed/resumable-upload recovery outside resume_upload, and error shape) rather than blocking for a correct invocation.

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 already 89%, so the baseline is 3; the description earns above that by explaining cross-parameter semantics the schema cannot — that file_path and url are alternatives, that publish_at schedules rather than publishes, that confirmations tie to identical arguments, and that wait_seconds controls whether a job_id or a finished video is returned. It does not explain ab_test variant pairing (that lives only in the nested schema) or a few boolean flags.

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+resource ("Upload a video file ... to YouTube") plus the two accepted sources (file_path or public URL), which clearly separates it from siblings like upload_captions, update_video, and create_short. It also enumerates the bundled side-effects (schedule, thumbnail, playlists, captions) so the agent knows this single call spans several operations.

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?

Explicitly routes the agent: poll get_upload_status after the call, and write metadata first via generate_metadata then preview_metadata. It also states a real gating rule — private uploads start immediately while public, unlisted and scheduled uploads need user confirmation first — which is exactly the when/when-not guidance an agent needs before invoking.

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