Skip to main content
Glama
YangLiangwei

PersonalizationMCP

by YangLiangwei

complete_youtube_oauth

Finalize YouTube OAuth2 authentication by submitting client ID, client secret, and device code to obtain authorized access.

Instructions

    完成YouTube OAuth2认证(获取令牌)
    
    Args:
        client_id: Google OAuth2 Client ID
        client_secret: Google OAuth2 Client Secret  
        device_code: 从setup_youtube_oauth获得的设备代码
        
    Returns:
        认证完成状态
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
client_idYes
device_codeYes
client_secretYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only says the tool completes authentication and returns status, without revealing side effects such as token persistence, whether it overwrites existing credentials, or what happens on failure. This is a significant gap for a state-changing OAuth step.

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 description is compact and front-loaded with its purpose, followed by a structured Args/Returns listing. The Args section repeats parameter names already in the schema, but since the schema has no descriptions, this repetition is arguably useful rather than wasteful. No extraneous content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This tool sits inside a multi-step OAuth flow and has no annotations or schema descriptions. The description mentions the prerequisite device_code from setup_youtube_oauth but omits critical context: whether user interaction is needed, how credentials are stored, how this relates to refresh_youtube_token, and what '认证完成状态' means beyond a generic status. The existing output schema helps but does not fill these workflow gaps.

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 description coverage is 0%, so the description must compensate for the bare schema. It gives one-line meanings for all three parameters and usefully specifies that device_code is obtained from setup_youtube_oauth. Yet it does not explain how to source client_id/client_secret or validate formats, so the added value is adequate but not thorough.

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 states a clear action and resource: '完成YouTube OAuth2认证(获取令牌)' (complete YouTube OAuth2 authentication and obtain a token). It also references device_code from setup_youtube_oauth, which helps distinguish it from the setup step. However, it does not explicitly contrast itself with refresh_youtube_token or other auth-related siblings.

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?

The description clearly implies when to use the tool by noting that device_code comes from setup_youtube_oauth, establishing this as the second step in the OAuth flow. It does not, however, provide explicit exclusions or mention that refresh_youtube_token is for a different purpose, so it falls short of a full 5.

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

Deploy Server

Other Tools