Skip to main content
Glama

Link to connect YouTube

connect_youtube

Use this when the owner wants to post their videos to their YouTube channel as Shorts, or a tool says YouTube is not connected. Returns a one-time link (10 minutes, works once) that connects the account's YouTube channel through Google's own login: its own Google screen, separate from the sending email's, asking only to upload videos. Once connected, a video made here can be posted to the channel as a Short (publish_video or schedule_video with platform "youtube"). Give the person the link and tell them: "you'll get a code by email at your account address" — the page emails a 6-digit code to the account's confirmed email, and only that code lets the connect go ahead (so a link sent to someone else is useless to them). Then wait for them to say it is done and call get_google_connections to confirm. If the link expires or was used, call this again for a fresh one.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "connect_youtube"
  }
}

Input Schema

NameRequiredDescriptionDefault
clientNoClient website slug (or id). Leave out on your own account; required for platform-scoped keys.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover the mutation/safety profile, so the description carries the rest and does: 10-minute expiry, single use, Google-hosted consent screen scoped to video upload only, and a 6-digit code emailed to the account's confirmed address that gates the connection. It also warns the agent what to tell the user, which is behavior an agent would otherwise get wrong.

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?

The when-to-use trigger comes first, followed by what the link is, the user-facing script, and the confirmation step. It is a long definition, but nearly every clause does real work; the exact wording of the user script is the only part bordering on verbosity.

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 link-issuing tool with no output schema, the description covers what is returned (a one-time link), its lifetime, the out-of-band verification step, and how to verify success. An agent can run the full flow end to end without guessing.

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?

There is one parameter with 100% schema coverage, which documents the client slug and its platform-scoped key condition. The description never mentions the client parameter, so it adds no meaning beyond the schema; baseline 3 applies.

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 first sentence states a specific action and resource: produce a one-time link that connects the account's YouTube channel via Google login. It also distinguishes itself from siblings by naming publish_video, schedule_video, and get_google_connections in their respective roles.

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?

It gives explicit trigger conditions (owner wants to post Shorts, or a tool reports YouTube not connected) and explicit follow-up steps (wait for confirmation, then call get_google_connections). It also covers the retry case: if the link expired or was used, call this again.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources