Skip to main content
Glama
davehenke

rekordbox-mcp

get_unplayed_tracks

Identify tracks in your rekordbox DJ database that have never been played to discover fresh music for your sets.

Instructions

Get tracks that have never been played.

Args: limit: Maximum number of tracks to return

Returns: List of unplayed tracks

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • MCP tool registration and handler function for get_unplayed_tracks. Ensures database connection, calls the database helper method, and converts Track models to dictionaries for the MCP response.
    @mcp.tool()
    async def get_unplayed_tracks(limit: int = 50) -> List[Dict[str, Any]]:
        """
        Get tracks that have never been played.
        
        Args:
            limit: Maximum number of tracks to return
            
        Returns:
            List of unplayed tracks
        """
        if not db:
            raise RuntimeError("Database not initialized.")
        
        tracks = await db.get_unplayed_tracks(limit)
        return [track.model_dump() for track in tracks]
  • Database class method implementing the core logic: loads all content, filters active tracks with DJPlayCount == 0, converts to Track models, and limits results.
    async def get_unplayed_tracks(self, limit: int = 50) -> List[Track]:
        """Get tracks that have never been played."""
        if not self.db:
            raise RuntimeError("Database not connected")
        
        all_content = list(self.db.get_content())
        active_content = [c for c in all_content if getattr(c, 'rb_local_deleted', 0) == 0]
        # Filter tracks with 0 play count
        unplayed = [content for content in active_content if (getattr(content, 'DJPlayCount', 0) or 0) == 0]
        
        return [self._content_to_track(content) for content in unplayed[:limit]]
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool returns a list of unplayed tracks but doesn't cover aspects like whether this is a read-only operation, how it handles large datasets, pagination, or potential performance impacts. The description is minimal and lacks critical behavioral details.

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?

The description is appropriately sized and front-loaded, with the purpose stated first, followed by clear sections for args and returns. It avoids unnecessary details, though the structure could be slightly more integrated. Every sentence adds value, making it efficient.

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?

Given the tool's low complexity (one parameter) and the presence of an output schema (which handles return values), the description is somewhat complete but lacks depth. It covers the basic purpose and parameter semantics but misses behavioral context and usage guidelines, leaving gaps for an AI agent to infer.

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?

The description adds meaning beyond the input schema by explaining that 'limit' is the 'Maximum number of tracks to return,' which clarifies its purpose. Since schema description coverage is 0% and there's only one parameter, this compensates well. However, it doesn't detail default behavior or constraints beyond the basic explanation.

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?

The description clearly states the tool's purpose: 'Get tracks that have never been played.' It specifies the verb ('Get') and resource ('tracks that have never been played'), making the action distinct. However, it doesn't explicitly differentiate from siblings like 'get_most_played_tracks' or 'get_top_rated_tracks', which are related but not identical in scope.

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 description provides no guidance on when to use this tool versus alternatives. It doesn't mention scenarios where this is preferred over other tools like 'search_tracks' or 'get_racks_by_key', nor does it specify prerequisites or exclusions. Usage is implied by the purpose but lacks explicit context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/davehenke/rekordbox-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server