Skip to main content
Glama

import_youtube_playlist

Extract a tracklist from a YouTube video's chapters or description, match each song on Spotify, and add matched tracks to a new playlist. Skips entries when the artist doesn't match.

Instructions

Extract a tracklist from a YouTube video's chapters or description (for videos that list their songs — mixes, compilations, study/focus playlists, etc.), look each one up on Spotify, and add whatever matches to a new playlist. Best-effort: only works for videos with a written tracklist (no audio recognition); entries are skipped rather than guessed when the Spotify result's artist doesn't match the tracklist entry's artist (common for "unreleased"/"coming soon" tracks that aren't on Spotify at all).

⚠️ public=False is currently ignored by Spotify's API — playlists are created public regardless (confirmed bug on Spotify's side, not this server; see journal entry 30).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
publicNo
descriptionNo
youtube_urlYes
playlist_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It goes well beyond the schema by explaining best-effort behavior, skip rules when Spotify artist matches fail, handling of unreleased/coming-soon tracks, and the important public=False bug with a reference to a journal entry.

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 well-structured: the core purpose is front-loaded, followed by the best-effort caveat and the critical public flag warning. Every sentence earns its place and the content is scannable compact prose rather than verbose filler.

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 multi-step import tool with no annotations, the description covers input expectations, success conditions, failure/skip behavior, and a known API bug. It is largely complete for invocation, though a bit more detail on the description parameter would make it fully self-contained. The presence of an output schema reduces the need to explain return values.

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%, so the description must compensate for missing parameter docs. It adds meaningful context for public (ignored by Spotify) and implicitly references playlist_name via 'new playlist', but it does not explain the description parameter at all, and youtube_url format is only inferred from context.

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 a specific composite workflow: extract a tracklist from a YouTube video's chapters or description, look each track up on Spotify, and add matches to a new playlist. This distinguishes it from sibling tools like search_track, add_tracks, and create_user_playlist, which only handle portions of this flow.

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 explicitly specifies when to use the tool: for videos that list their songs, such as mixes, compilations, and study/focus playlists, and only when a written tracklist is available. It also states that audio recognition is not performed. It does not name alternative sibling tools for different situations, but the context is clear enough.

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