Skip to main content
Glama

peek_next

Peek at the next tracks queued on Spotify, including each song's duration and total remaining time.

Instructions

Queue lookahead — next N tracks with durations and total runway. Right-sized via max_results. 🟢 (1 read). Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoAlias for max_results: how many to peek (default 5)
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It adds two useful traits: the operation is read-only and costs exactly one API read (🟢 1 read). This is beyond what the schema or annotations provide, though it does not cover edge cases like an empty queue.

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?

Three short sentences, front-loaded with the core purpose, and no filler. The read-only and single-read note is compact and useful. Every clause earns its place.

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?

For a simple, read-only lookahead tool with a fully described schema, the description covers the essential return content (tracks, durations, total runway) and safety profile. It is slightly light on edge-case behavior and response-format expectations, but no output schema exists and the schema covers response_format.

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?

All three parameters are fully described in the schema (100% coverage), so the description does not need to compensate. It does reinforce that max_results controls result size, but adds little semantic value beyond the schema.

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 identifies the resource (the queue) and the operation (lookahead/peek at next N tracks) and the output (durations and total runway). It is specific enough to distinguish it from general queue tools, though it does not explicitly name any sibling tool or contrast itself with get_queue/get_queue_snapshot.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no guidance on when to use peek_next versus alternatives like get_queue, get_queue_snapshot, or queue_runtime_report. The read-only note implies safe usage, but there is no explicit context, prerequisite, or exclusion.

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/NovaLux12/spotify-mcp-server'

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