Skip to main content
Glama
YangLiangwei

PersonalizationMCP

by YangLiangwei

complete_spotify_oauth

Finish Spotify OAuth2 authentication by exchanging the authorization code for access and refresh tokens using your client credentials.

Instructions

    Complete Spotify OAuth2 authentication (get tokens)
    
    Args:
        client_id: Spotify Client ID
        client_secret: Spotify Client Secret
        authorization_code: Authorization code from Spotify callback
        redirect_uri: Optional redirect URI (should match the one used in setup_spotify_oauth)
        
    Returns:
        Authentication completion status
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
client_idYes
redirect_uriNo
client_secretYes
authorization_codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool completes authentication and returns status, but doesn't disclose side effects (e.g., storing tokens), whether it overwrites existing tokens, error conditions, or rate limits. For an OAuth completion step, this is a significant gap.

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 the core purpose. The Args/Returns structure is scannable. It earns its place with parameter explanations and the redirect_uri matching note. Minor waste: the Returns line is vague ('Authentication completion status') and could be more specific.

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?

For a 4-parameter OAuth completion tool with no annotations and no output schema, the description is incomplete. It doesn't explain the OAuth flow context (e.g., that this must follow setup_spotify_oauth), what the returned status contains, or what happens on failure. The sibling tools show a clear OAuth lifecycle (setup → complete → refresh), but the description doesn't explicitly place itself in that flow.

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. It lists all four parameters with brief explanations (client_id, client_secret, authorization_code, redirect_uri) and notes redirect_uri is optional and should match setup. This adds some meaning beyond the schema, but the explanations are minimal and don't clarify formats, where to find the authorization code, or what 'optional' means for behavior.

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 clearly states the tool's purpose: completing Spotify OAuth2 authentication to obtain tokens. It names the specific verb 'Complete' and the resource 'Spotify OAuth2 authentication', which distinguishes it from setup_spotify_oauth and refresh_spotify_token. However, it doesn't explicitly contrast with those siblings, so it's clear but not fully differentiated.

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?

The description implies usage context by listing the required arguments and noting that redirect_uri should match the one used in setup_spotify_oauth. This gives some guidance on when to use it (after setup, with the authorization code from the callback). However, it doesn't explicitly state when not to use it or mention alternatives like refresh_spotify_token for token renewal.

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