Skip to main content
Glama

recommend_tracks

Recommends music tracks from specified TIDAL track IDs or the user's favorites when no IDs are given, with optional filters to tailor suggestions.

Instructions

Recommends music tracks based on specified track IDs or the user's TIDAL
favorites if no IDs are provided.

USE THIS TOOL WHENEVER A USER ASKS FOR:
- Music recommendations
- Track suggestions
- Music similar to their TIDAL favorites or specific tracks
- "What should I listen to?"
- Any request to recommend songs/tracks/music based on their TIDAL history
  or specific tracks

This function gets recommendations based on provided track IDs or retrieves
the user's favorite tracks as seeds if no IDs are specified.

When processing the results of this tool:
1. Analyze the seed tracks to understand the music taste or direction
2. Review the recommended tracks from TIDAL
3. IMPORTANT: Do NOT include any tracks from the seed tracks in your recommendations
4. Ensure there are NO DUPLICATES in your recommended tracks list
5. Select and rank the most appropriate tracks based on the seed tracks and
   filter criteria
6. Group recommendations by similar styles, artists, or moods with
   descriptive headings
7. For each recommended track, provide:
   - The track name, artist, album
   - Always include the track's URL to make it easy for users to listen
   - A brief explanation of why this track might appeal to the user based
     on the seed tracks
   - If applicable, how this track matches their specific filter criteria
8. Format your response as a nicely presented list of recommendations with
   helpful context (remember to include the track's URL!)
9. Begin with a brief introduction explaining your selection strategy
10. Unless specified otherwise, recommend MINIMUM 20 tracks (or more if
    possible) to give the user a good variety to choose from.

[IMPORTANT NOTE] If you're not familiar with any artists or tracks
mentioned, use internet search capabilities if available to provide more
accurate information.

Args:
    track_ids: Optional list of TIDAL track IDs to use as seeds.
               If not provided, will use the user's favorite tracks.
    filter_criteria: Specific preferences for filtering recommendations
                     (e.g., "relaxing music," "recent releases," "upbeat,"
                     "jazz influences")
    limit_per_track: Maximum recommendations per seed track (default: 20)
    limit_from_favorite: Maximum favorite tracks to use as seeds (default: 20)

Returns:
    A dictionary containing "seed_tracks", "recommendations", and
    "filter_criteria". Returns an "error" key on failure.

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

Input Schema

NameRequiredDescriptionDefault
track_idsNo
filter_criteriaNo
limit_per_trackNo
limit_from_favoriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and largely meets it: it discloses the default seed behavior when no IDs are given, the per-parameter defaults (20/20), the return keys (seed_tracks, recommendations, filter_criteria) and the error key. It omits auth/login requirements and any rate-limit or cost characteristics, which are relevant for a TIDAL API call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and triggers are correctly front-loaded, but roughly half the text is a ten-step post-processing and formatting checklist plus an 'IMPORTANT NOTE' about internet search, which is agent workflow guidance rather than tool definition content. The core definition could be delivered in a fraction of the space.

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?

No output schema exists, yet the description enumerates the returned dictionary keys, so return-value expectations are covered. Combined with full parameter documentation and default-seed behavior, an agent has essentially everything needed to call it correctly; only auth/error-handling detail is thin.

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 0%, so the description must compensate, and the Args block does: each of the four parameters is named, given a type-level meaning, and assigned its default, with filter_criteria illustrated by example phrases. It does not explain the interaction between limit_per_track and limit_from_favorite in bounding total volume, leaving one semantic gap.

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?

States a specific verb (recommends), resource (music tracks), and seed source (specified track IDs or the user's TIDAL favorites). The two seed modes are spelled out, so an agent knows exactly what the tool produces and what it draws from without needing sibling comparison.

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 'USE THIS TOOL WHENEVER A USER ASKS FOR' block gives concrete trigger phrases including "What should I listen to?" and recommendations from TIDAL history, which is strong when-to-use guidance. It stops short of stating when NOT to use it or naming a sibling alternative (e.g. search_tracks), so it is clear context rather than full routing guidance.

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