Skip to main content
Glama
YouTubeMCP
by imrees

Get share link

get_share_link
Idempotent

Returns a video’s shareable URL with its visibility, optionally copying it to the macOS clipboard. Use it to get youtu.be or youtube.com watch links from a video ID or URL.

Instructions

Return the shareable URL of a video (with its visibility), optionally copying it to the macOS clipboard.

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": "get_share_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
video_idYesYouTube video ID (11 characters) or any youtube.com / youtu.be URL.
link_formatNo'short' (youtu.be) or 'watch' (youtube.com/watch).short
copy_to_clipboardNoAlso copy the URL to the macOS clipboard.

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?

The description supplies context the annotations cannot: the optional clipboard write is what explains readOnlyHint=false despite otherwise passive behavior, and it correctly scopes that side effect to macOS. It doesn't state error behavior for invalid IDs, but the safety-relevant trait is disclosed and consistent with the 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?

One sentence, front-loaded with the primary output and parenthetically scoped for visibility and the optional side effect. No redundant wording or filler.

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?

With an output schema present, the description need not explain return values, and it covers the key behavioral wrinkle (clipboard). The phrase 'with its visibility' is slightly ambiguous about whether visibility is part of the URL or a separate returned field, a minor gap in an otherwise complete definition.

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 coverage is 100%, so video_id, link_format, and copy_to_clipboard are already fully documented. The description only echoes the clipboard parameter and adds that visibility accompanies the URL; it says nothing about link_format beyond what the schema already provides, so the baseline 3 applies.

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 description names a specific verb and resource ('Return the shareable URL of a video') and adds scope details (visibility included, clipboard option). It is unambiguous about what comes back, though it doesn't need to distinguish itself from siblings since none of the listed tools appear to produce share links.

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?

Usage is only implied by the purpose: call this when you need a URL to share a video. There is no explicit when-to-use or when-not-to-use statement, and no alternative tool is named for cases like getting metadata versus a link.

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