Skip to main content
Glama

switch_account

Destructive

Switch the active Spotify account for this session and clear cached reads so subsequent calls use the chosen authenticated profile.

Instructions

Change which registered account this session acts as. Takes effect for every subsequent call in this session: the client re-points its token file, drops the previous account's cached reads and validators, and refuses to switch while a request is in flight. Asks for confirmation first, because every later write then lands in the new account's library. Changes local session state and the account registry only — it issues no Spotify writes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
profileYesProfile name to act as — the same value "--profile <name>" takes, or "default" for the account this server started as. The name must already have been authenticated with "spotify-mcp auth --profile <name>"; this tool does not run the auth flow.
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.0.1

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial behavioral context beyond the annotations: it re-points the token file, drops the previous account's cached reads and validators, requests confirmation first, and refuses during in-flight requests. Critically, it resolves the ambiguity of destructiveHint=true by clarifying no Spotify writes are issued — a genuinely valuable distinction.

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?

Front-loaded with the core action, then layers effect, mechanics, and safety in dense, non-redundant sentences. It is on the longer side, but nearly every clause carries operational information an agent needs before switching accounts.

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 session-state-mutating tool with no output schema, the description covers scope of effect, prerequisite auth state, cache invalidation, concurrency behavior, and confirmation handling. Nothing an agent needs to call it safely is missing.

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 100%, so both the profile parameter and its auth prerequisite, plus the response_format enum, are fully documented in the schema. The description adds no parameter-level syntax or constraints beyond that, so 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?

States a specific verb and resource — 'Change which registered account this session acts as' — and scopes it to the session, which cleanly separates it from list_accounts and other account-adjacent siblings. An agent can act on it without opening the 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?

Gives clear context for when the tool applies (every subsequent call in the session, requires prior 'spotify-mcp auth --profile <name>') and a guard condition (refuses while a request is in flight). It stops short of naming an alternative sibling or an explicit 'don't use this when...' rule, so it lands at 4.

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