Skip to main content
Glama
davehenke

rekordbox-mcp

connect_database

Establish a connection to the rekordbox DJ database to enable read-only querying of tracks, playlists, and session history. Optionally specify a custom database path or use auto-detection.

Instructions

Connect to the rekordbox database.

Args: database_path: Optional path to database directory. If not provided, auto-detection is used.

Returns: Connection status message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
database_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The connect_database tool handler. Decorated with @mcp.tool() for registration. Initializes RekordboxDatabase instance and calls its connect method with optional database_path. Returns success/error status with track count on success.
    @mcp.tool()
    async def connect_database(database_path: Optional[str] = None) -> Dict[str, str]:
        """
        Connect to the rekordbox database.
        
        Args:
            database_path: Optional path to database directory. If not provided, auto-detection is used.
            
        Returns:
            Connection status message
        """
        global db
        
        try:
            db = RekordboxDatabase()
            path = Path(database_path) if database_path else None
            await db.connect(database_path=path)
            
            return {
                "status": "success", 
                "message": f"Connected to rekordbox database at {db.database_path}",
                "total_tracks": str(await db.get_track_count())
            }
        except Exception as e:
            logger.error(f"Failed to connect to database: {e}")
            return {"status": "error", "message": f"Failed to connect: {str(e)}"}
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool connects to a database and returns a status message, but lacks details on permissions needed, whether it's idempotent, error conditions, or side effects (e.g., if it establishes a persistent connection). This is inadequate for a connection tool with zero annotation coverage.

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

Conciseness5/5

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

The description is well-structured and front-loaded with the core purpose, followed by clear Arg and Return sections. Every sentence adds value: the first states the action, the second explains the parameter's optionality and fallback, and the third specifies the return type. No wasted words.

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 moderate complexity (connecting to a database), no annotations, and an output schema present (which covers return values), the description is minimally adequate. It explains the purpose and parameter but lacks behavioral details like error handling or connection lifecycle, leaving gaps for the agent to navigate.

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 meaningful context for the single parameter: it explains that 'database_path' is optional and that auto-detection occurs if not provided. With 0% schema description coverage and only one parameter, this adequately compensates by clarifying the parameter's role and default behavior beyond the schema's basic type information.

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 as 'Connect to the rekordbox database' with a specific verb ('Connect') and resource ('rekordbox database'). It distinguishes itself from sibling tools by focusing on database connection rather than data manipulation or querying. However, it doesn't explicitly contrast with specific alternatives among siblings.

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 prerequisites (e.g., whether this must be called before other tools), exclusions, or contextual cues. The agent must infer usage from the purpose alone.

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