Skip to main content
Glama
llyfn

Spotify MCP Server

toggle_shuffle

Enable, disable, or flip shuffle mode for current playback. Supports specifying a device.

Instructions

Set or toggle shuffle mode for playback.

    Args:
        state: True to enable, False to disable. If omitted, flips the current state.
        device_id: ID of the device. If not provided, uses the active device.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateNo
device_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description fully carries the burden of behavioral transparency. It discloses that omitting the state parameter flips the current state, which is a key behavioral trait. It does not describe effects on playback or auth requirements, but for a shuffle toggle, this is adequate.

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 concise, front-loading the main action in the first sentence, followed by a structured Args section. Every sentence adds value without redundancy. A small improvement could be merging the Args into a more natural flow.

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?

Given that the tool has only two optional parameters and a straightforward toggle behavior, the description covers the essential aspects. The presence of an output schema (if defined) reduces the need to describe return values. The description is complete for this tool's complexity.

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

Parameters4/5

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

The input schema has 0% description coverage, so the description bears full responsibility for parameter semantics. It explains both parameters: state (boolean or null, with toggle behavior) and device_id (optional, uses active device if omitted). This adds significant meaning beyond the schema's type definitions.

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 clearly states the tool sets or toggles shuffle mode for playback, using specific verbs and identifying the exact resource. It implicitly distinguishes from sibling tools like set_repeat and set_volume, which handle different playback settings.

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 explains when to use the tool (to enable, disable, or toggle shuffle), but does not explicitly mention when not to use it or provide alternative tools. However, given the clarity of the action and the lack of competing shuffle-focused tools, the guidance is sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/llyfn/spotify-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server