Skip to main content
Glama

Save the story playlist

save_session

Explicitly save the matched music from one listening session as a 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. Unmatched songs are excluded and reported. If sign-in is needed, OffStereo preserves the request for one 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": "save_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
serviceNo
sessionIdNo
pendingActionIdNo

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

A3.9/5.0
Behavior4/5

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

Annotations already declare the write and open-world profile, and the description adds real context: the playlist is private, unmatched songs are dropped but reported, and there is a one-retry safety path for authentication. It does not address idempotency (e.g., repeated saves creating duplicate playlists), which is the main remaining behavioral unknown.

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?

Front-loaded with the core action, followed by destination constraints and the retry caveat in a logical sequence. Dense but every sentence carries operational content; the signing-in sentence is slightly awkward but not wasted.

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 an open-world mutation with an output schema, the description covers destination policy, partial-failure behavior, and auth retry. Gaps remain on `name` semantics and duplicate-save behavior, but nothing essential to calling it is missing.

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 coverage is 0%, so the description must carry parameter meaning. It explains `service` thoroughly (default Apple Music, Spotify gated) and hints at `pendingActionId` via the retry language, but says nothing about `name` (does it override a generated title?) or `sessionId` beyond the general 'one listening session' framing.

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 a specific verb and resource: save matched music from one listening session as a private playlist in the active music service. The 'from one session' scoping separates it from a generic create_playlist, 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 Guidelines4/5

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

Gives actionable conditions: only pass `service` when the listener explicitly names a destination, Apple Music is the public path while Spotify requires an enabled test deployment, and the caller should expect a re-request if sign-in fails. No explicit when-not or named-alternative routing, which keeps it from a 5.

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