Skip to main content
Glama
YouTubeMCP
by imrees

Set video visibility

set_visibility
DestructiveIdempotent

Change a YouTube video's visibility to private, unlisted, or public; preview the change and require approval before applying it.

Instructions

Change a video's visibility to private, unlisted or public, then verify the actual result. Always two-step: returns a preview and confirmation_token; call again with the token after the user approves. PUBLIC also needs confirm_public=true, and the user must additionally click 'Allow Public' in a native macOS dialog on their Mac. Changing private to unlisted is treated the same way when the video is in one of the channel's PUBLIC playlists (anyone viewing the playlist could then watch it); the preview lists those playlists.

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

Input Schema

NameRequiredDescriptionDefault
video_idYesYouTube video ID (11 characters) or any youtube.com / youtu.be URL.
visibilityYes'private', 'unlisted' or 'public'.
confirm_publicNoRequired (true) to make a video public, or when the preview warns that it becomes visible through public playlists; only with explicit user approval.
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

A4.4/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: a preview/confirmation_token round trip, a native macOS 'Allow Public' dialog the user must click, and the side-effect that private→unlisted is escalated when the video sits in a PUBLIC playlist. These are real preconditions an agent could not infer from destructiveHint/idempotentHint alone.

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-loads the action and the two-step rule, then layers the PUBLIC and playlist caveats. Dense but nearly every clause carries a distinct requirement; the parenthetical explaining playlist exposure is long but justified.

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?

An output schema exists, so return values need no explanation, and the description covers the multi-step workflow, approval gating, native dialog, and the edge case that parallels PUBLIC. Nothing essential for a correct call 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 baseline is 3, but the description still adds semantic rules the schema does not: confirm_public is mandatory for PUBLIC and for the playlist-visible escalation, and the token must only be sent after explicit approval. That sequencing meaning is beyond the field 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?

States a specific verb and resource ('Change a video's visibility') and enumerates the exact target states (private, unlisted, public). It also flags the verification step, so an agent understands this is a mutation plus confirmation, not a simple setter.

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?

Explicitly prescribes the usage sequence: always two-step, return with the token only after user approval, and add confirm_public=true for PUBLIC or for the playlist-exposure case. Does not name sibling alternatives, but the operation is unambiguous enough that differentiation is not the gap.

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