Skip to main content
Glama

get_track_file_path

Retrieve the file system path of a specific track by providing its unique track identifier in rekordbox DJ database. Access file path details for efficient track management and organization.

Instructions

Get the file system path for a specific track.

Args: track_id: The unique track identifier

Returns: Dictionary containing file path information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
track_idYes

Implementation Reference

  • The main handler function for the 'get_track_file_path' tool. It is decorated with @mcp.tool() which registers it with the FastMCP server. The function retrieves the track from the database using db.get_track_by_id(track_id), extracts the file_path from the Track model, and returns a dictionary containing track_id, file_path, and file_name.
    async def get_track_file_path(track_id: str) -> Dict[str, str]: """ Get the file system path for a specific track. Args: track_id: The unique track identifier Returns: Dictionary containing file path information """ if not db: raise RuntimeError("Database not initialized.") track = await db.get_track_by_id(track_id) if not track: raise ValueError(f"Track with ID {track_id} not found") return { "track_id": track_id, "file_path": track.file_path or "", "file_name": track.file_path.split("/")[-1] if track.file_path else "" }

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