Skip to main content
Glama
jamiew

Spotify MCP Server

by jamiew

Get Queue

get_queue
Read-onlyIdempotent

Retrieve the current playback queue to see the actively playing track and the list of upcoming songs.

Instructions

Get the current playback queue. Returns: Currently playing track and queue of upcoming tracks

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
queueYes
currently_playingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.6.1
    • addedOutput schema / $defs / Track / properties / id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / $defs / Track / properties / id / default
      Added value: +null
    • removedOutput schema / $defs / Track / properties / id / type
      Removed value: -"string"
    • addedOutput schema / $defs / Track / properties / is_local
      Added value: +{
      +  "default": false,
      +  "title": "Is Local",
      +  "type": "boolean"
      +}
    • addedOutput schema / $defs / Track / properties / played_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Played At"
      +}
    • changedOutput schema / $defs / Track / required
      Previous value: -[
      -  "name",
      -  "id",
      -  "artist"
      -]New value: +[
      +  "name",
      +  "artist"
      +]
  2. Changed5 schema fields changedv0.3.1
    • addedOutput schema / $defs
      Added value: +{
      +  "Track": {
      +    "description": "A Spotify track with metadata.",
      +    "properties": {
      +      "added_at": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Added At"
      +      },
      +      "album": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Album"
      +      },
      +      "album_id": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Album Id"
      +      },
      +      "artist": {
      +        "title": "Artist",
      +        "type": "string"
      +      },
      +      "artists": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Artists"
      +      },
      +      "duration_ms": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Duration Ms"
      +      },
      +      "external_urls": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "External Urls"
      +      },
      +      "id": {
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "name": {
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "popularity": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Popularity"
      +      },
      +      "release_date": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Release Date"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "id",
      +      "artist"
      +    ],
      +    "title": "Track",
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / description
      Added value: +"Currently playing track plus the upcoming queue."
    • addedOutput schema / properties
      Added value: +{
      +  "currently_playing": {
      +    "anyOf": [
      +      {
      +        "$ref": "#/$defs/Track"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null
      +  },
      +  "queue": {
      +    "items": {
      +      "$ref": "#/$defs/Track"
      +    },
      +    "title": "Queue",
      +    "type": "array"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "queue"
      +]
    • changedOutput schema / title
      Previous value: -"get_queueDictOutput"New value: +"QueueState"
  3. Addedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, covering safety and side effects. The description adds the key behavioral detail that the result includes the currently playing track and upcoming tracks, which is useful beyond the annotations.

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?

The description is extremely compact, front-loaded with the primary action, and includes a concise return summary. Every sentence adds value with no redundancy.

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 zero-parameter read-only queue retrieval tool with an output schema, the description is fully adequate. It states the action and the return content, and the annotations cover the operational safety profile.

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 tool has zero parameters and schema coverage is effectively complete, so there is no parameter documentation burden for the description to carry. The baseline of 4 applies because no parameters exist to explain.

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 uses a specific verb and resource: 'Get the current playback queue' and explicitly states what will be returned. It is clearly distinguishable from sibling tools like get_playback_state or add_to_queue.

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 makes clear that this tool is for retrieving the current queue, which is appropriate context for when to use it. It does not explicitly name alternatives or exclusion cases, but with zero parameters and a focused resource, the intended usage is unambiguous.

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