Skip to main content
Glama

yt_auth_login

Authorize the server with your Google account via browser OAuth, store a local refresh token, and return the connected YouTube channel. Re-run if authorization is revoked.

Instructions

Authorize this server with the user's Google account (one-time per account). Opens the browser for OAuth consent, stores the refresh token locally (0600), and returns the connected channel. Run again if yt_auth_status reports the token was revoked.

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

Input Schema

NameRequiredDescriptionDefault
timeout_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does substantial work: it discloses that the call opens a browser for OAuth consent (an interactive, potentially blocking side effect), that a refresh token is persisted locally with restrictive 0600 permissions, and that the result is the connected channel. Gaps remain around what happens on consent denial, browser unavailability, or token overwrite for an already-authorized account.

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?

Three sentences, each earning its place: what it does, what side effects it has, and when to re-run. The recovery condition is front-loaded as an actionable instruction rather than buried in prose.

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?

An output schema exists, so 'returns the connected channel' is sufficient rather than a gap. For an interactive auth tool with no annotations, the definition covers purpose, effects, storage location, and recovery, missing only failure handling and the timeout parameter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single parameter, so the description must compensate, but it never mentions timeout_seconds at all. That parameter is materially meaningful here because it governs how long the blocking browser consent flow waits, so its absence leaves the agent without guidance on the one knob it can turn.

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 description names a specific verb and resource ('Authorize this server with the user's Google account') and scopes it clearly ('one-time per account'), which separates it cleanly from yt_auth_status (status check) and yt_auth_logout (teardown). An agent can identify the auth-entry-point tool without inspecting any schema.

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?

It states the trigger condition explicitly ('Run again if yt_auth_status reports the token was revoked') and the expected frequency ('one-time per account'), routing the agent to the sibling that gates it. It stops short of naming yt_auth_logout as the inverse operation or saying when not to call it (e.g., already authorized and valid), which keeps it from a 5.

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