Skip to main content
Glama

playlist_table_of_contents

Generate a playlist index with total tracks, runtime, and contributor counts. Group tracks into monthly-added chapters to show when each block was added and make long playlists easier to navigate.

Instructions

Build a table of contents for a playlist: totals, runtime, and "chapters" — contiguous position ranges grouped by the month each block was added — plus contributor counts. Read-only. Quota: 🟢 1–2 GETs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
playlist_idYesPlaylist to index (ID or spotify:playlist: URI)
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 present, the description carries the full burden and discloses two important behaviors: the operation is read-only and costs only 1–2 GETs. It also explains how 'chapters' are derived (contiguous position ranges grouped by month added), which is meaningful behavioral context beyond the schema.

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 two tight sentences: the first front-loads the operation and output definition, the second adds safety and cost information. Every clause earns its place, and the 'chapters' definition avoids elaboration.

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?

Because there is no output schema, the description supplies a high-level return contract (totals, runtime, chapters, contributor counts) and notes cost and side effects. It does not cover edge cases like an empty playlist or missing added-date metadata, but the core information needed to invoke and interpret the tool is present.

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 the schema already documents playlist_id, max_results, and response_format. The description adds no parameter-level details beyond the schema, matching the baseline of 3.

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 opens with a specific verb and resource — 'Build a table of contents for a playlist' — and enumerates the exact outputs (totals, runtime, chapters, contributor counts). It is clear about what the tool produces, though it does not explicitly differentiate it from sibling playlist-overview tools such as get_playlist_added_dates or playlist_era_profile.

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 intended use is implied by the purpose statement: call this when a playlist-level overview with monthly-added chapters is wanted. However, there are no explicit when-to-use/when-not-to-use instructions and no alternatives are named, so an agent is left to infer the right selection among many sibling playlist tools.

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