Skip to main content
Glama

Create a playlist

create_playlist

Create one playlist from a natural-language idea or explicit track list. Call exactly once per listener turn: do not inspect the result and make a corrective second call or stack another playlist card in the same response. previewOnly=true returns one authoritative playlist that can be heard before saving and needs no music-service connection. For the normal save flow, use save_to_offstereo with the returned preview id; it saves privately to OffStereo and offers Continue to Apple Music on the website. Only for an explicitly requested direct music-service save after approval, previewOnly=false with the approved tracks and the same concise editorial name creates one private playlist in the listener's active music service. Apple Music is the public save destination; Spotify saving requires an explicitly enabled test deployment. Pass service only when the listener explicitly names a destination. requiredArtists carries every artist the listener named as required. allowSecondPlaylist is true only for an explicit request for a separate additional playlist. Sign-in recovery preserves the exact request and pendingActionId for a safe retry.

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": "create_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoA concise editorial playlist title. Omit it when the listener did not supply a title; OffStereo derives one from the prompt.
countNoTarget song count for prompt-generated playlists (1-50, default 20).
promptNoA conceptual playlist request, e.g. 'connect A Tribe Called Quest to Steely Dan'.
tracksNo
serviceNoDestination service. Pass only when the listener explicitly names one; otherwise OffStereo uses the active service on their account.
previewOnlyNoResolve one unified playlist preview without saving or requiring a music-service connection. True when the listener asks to hear, inspect, or approve the songs before saving.
pendingActionIdNoRetry token returned by a prior auth_required result.
requiredArtistsNoEvery artist the user explicitly requires, especially endpoints in a request such as 'from Minnie Riperton to Solange'. OffStereo validates these before creating anything.
allowSecondPlaylistNoTrue only when the listener explicitly requests another separate playlist. Omit or pass false otherwise; this does not authorize a second create_playlist call in the same response.

Output Schema

NameRequiredDescriptionDefault
idNo
titleNo
objectYesAlways 'playlist'.
statusYespreview, preview_partial, saved_offstereo, created, partial, auth_required, or failed.
tracksNo
webUrlNo
actionsNo
messageNo
privacyNoRequested vs. confirmed privacy state.
serviceNo
spotifyNo
warningsNo
retryToolNo
appleMusicNo
authReasonNo
connectUrlNoSign-in URL when status is auth_required.
unresolvedNoSongs that could not be confidently matched.
connectionsNo
playbackLabelNo
playbackWebUrlNoFor saved_offstereo, opens the exact saved selection in OffStereo's browser player after sign-in. Null for unsupported saved media; availability is checked when opened. The existing webUrl remains the saved-selection/Apple export page.
pendingActionIdNoRetry token for a safe re-call after sign-in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / playbackLabel
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / playbackWebUrl
      Added value: +{
      +  "description": "For saved_offstereo, opens the exact saved selection in OffStereo's browser player after sign-in. Null for unsupported saved media; availability is checked when opened. The existing webUrl remains the saved-selection/Apple export page.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed3 schema fields changed
    • changedOutput schema / description
      Previous value: -"A playlist result. status is preview (unsaved, hearable), created, partial, auth_required, or failed. Songs that could not be matched are reported in `unresolved` rather than substituted."New value: +"A playlist result. status is preview (unsaved, hearable), preview_partial, saved_offstereo (private library snapshot, no music-service write), created, partial, auth_required, or failed. Songs that could not be matched are reported in `unresolved` rather than substituted."
    • changedOutput schema / properties / service / enum
      Previous value: -[
      -  "spotify",
      -  "apple_music"
      -]New value: +[
      +  "spotify",
      +  "apple_music",
      +  "offstereo"
      +]
    • changedOutput schema / properties / status / description
      Previous value: -"preview, created, partial, auth_required, or failed."New value: +"preview, preview_partial, saved_offstereo, created, partial, auth_required, or failed."
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare write (readOnlyHint=false), open-world, and non-destructive, and the description adds substantial context beyond them: previews need no music-service connection, saves land privately, Apple Music is the public destination while Spotify needs an enabled test deployment, and sign-in recovery preserves pendingActionId. It does not describe failure/validation behavior beyond requiredArtists being validated, which keeps it just under a 5.

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?

It is long but front-loaded — the core action and the once-per-turn constraint come first, then the preview/save branching, then parameter guidance. Nearly every sentence carries an operational rule; a couple of the save-flow sentences could be tightened.

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 9-parameter write tool with an output schema and annotations, the definition covers the decision points an agent actually needs: call count, preview vs. save, service selection, retry via pendingActionId, and named-artist constraints. Nothing material is left for inference.

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?

Schema coverage is 89%, so the baseline is already 3, and the description earns extra by explaining cross-parameter intent: requiredArtists must carry every named artist, allowSecondPlaylist is only for an explicitly separate playlist and does not license a second call, and service is only for explicitly named destinations. Name/count/tracks are left entirely to the schema.

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 first sentence gives a specific verb and resource (create one playlist) plus both supported input modes (natural-language prompt vs. explicit track list). It immediately distinguishes itself from the sibling save flow by naming save_to_offstereo as the path for actually persisting a preview.

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

Usage Guidelines5/5

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

Explicit routing is given for every branch: previewOnly=true for hear-before-save, save_to_offstereo with the preview id for normal saving, previewOnly=false only for an approved direct service save, and service only when the listener names a destination. It also states the cardinality rule (exactly once per turn, no corrective second call).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources