Skip to main content
Glama
davehenke

rekordbox-mcp

get_tracks_by_key

Find tracks in a specific musical key from your rekordbox DJ database. Use this tool to retrieve tracks matching a key like '5A' or '12B' for music organization and set planning.

Instructions

Get all tracks in a specific musical key.

Args: key: Musical key (e.g., "5A", "12B")

Returns: List of tracks in the specified key

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The primary handler function for the 'get_tracks_by_key' MCP tool, decorated with @mcp.tool() for automatic registration in the FastMCP server. It validates the database connection, constructs SearchOptions with the key filter (limit 1000), queries the RekordboxDatabase for matching tracks, and returns a list of serialized track dictionaries.
    @mcp.tool()
    async def get_tracks_by_key(key: str) -> List[Dict[str, Any]]:
        """
        Get all tracks in a specific musical key.
        
        Args:
            key: Musical key (e.g., "5A", "12B")
            
        Returns:
            List of tracks in the specified key
        """
        if not db:
            raise RuntimeError("Database not initialized.")
        
        search_options = SearchOptions(key=key, limit=1000)
        tracks = await db.search_tracks(search_options)
        return [track.model_dump() for track in tracks]
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 tracks, but doesn't describe key behaviors such as whether this is a read-only operation, if it requires authentication, how it handles invalid keys, or if there are rate limits. For a tool with zero annotation coverage, this leaves significant gaps in understanding its operational traits.

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 core purpose stated first, followed by structured 'Args' and 'Returns' sections. Every sentence adds value, and there's no redundant information. It could be slightly more concise by integrating the sections into a single paragraph, but it's efficient overall.

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 has an output schema (which likely defines the return structure), the description doesn't need to explain return values in detail. However, with no annotations and low schema coverage, it lacks context on behavioral aspects like error handling or performance. It's adequate for a simple query tool but misses opportunities to clarify usage and constraints.

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?

The description adds meaning beyond the input schema by explaining that 'key' is a 'Musical key' with examples like '5A', '12B', and clarifying it returns a list of tracks. However, with 0% schema description coverage, the schema only defines 'key' as a string without context. The description compensates somewhat but doesn't fully detail parameter constraints or formats, keeping it at a baseline level.

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 all tracks in a specific musical key.' It specifies the verb ('Get') and resource ('tracks'), and distinguishes it from siblings like 'get_tracks_by_bpm_range' by focusing on musical key. However, it doesn't explicitly differentiate from 'search_tracks' or 'get_track_details', which could also involve track retrieval, so it's not fully sibling-distinctive.

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 when to choose this over 'search_tracks' (which might allow broader queries) or 'get_track_details' (for individual tracks), nor does it specify prerequisites like needing a connected database. Usage is implied only by the purpose statement.

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