Skip to main content
Glama

Analyze playlist

analyze_playlist
Read-only

Analyze a playlist read-only to get total duration, BPM range, Camelot keys, genres, years, duplicates, BPM jumps, harmonic clashes, and listen counts for DJ set planning.

Instructions

Summary of a playlist for planning: total duration, BPM (min, median, max), Camelot keys, genres, years, duplicate tracks, BPM jumps above 6 and harmonic clashes between consecutive tracks, plus counts by access and listen. Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyze_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
playlist_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description's 'Read-only' merely restates that. Beyond the annotations it adds real value by disclosing what is computed (BPM jumps, harmonic clashes, duplicate detection, access/listen counts), but says nothing about error behavior for bad IDs, whether private/inaccessible playlists are handled, or computational cost for large playlists.

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?

A single dense sentence that is front-loaded with what the tool produces; the enumeration is long but each item is a distinct output metric that carries information. No filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description usefully enumerates return contents, which is the right call for an analysis tool. However, it is silent on the two undocumented, optional identifier parameters, so an agent cannot confidently construct a call.

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

Parameters2/5

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

Schema description coverage is 0% and neither url nor playlist_id is mentioned in the description at all, so the agent gets no guidance on format, which identifier wins if both are supplied, or why both are optional. The phrase 'of a playlist' only weakly implies a playlist identifier is needed, leaving the schema gap uncompensated.

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?

States the resource (a playlist) and precisely enumerates the computed outputs: total duration, BPM min/median/max, Camelot keys, genres, years, duplicates, BPM jumps >6, harmonic clashes, and access/listen counts. This clearly separates it from read-only siblings like get_playlist, which would return raw track data rather than aggregates, though the description never names a sibling explicitly.

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 only usage cue is the phrase 'for planning', which hints at a DJ-set-building context but never says when to choose this over get_playlist or when it is inappropriate (e.g., very large playlists, private playlists). No alternatives, prerequisites, or exclusions are given.

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