Skip to main content
Glama

set_track_name_tool

Rename tracks in Ableton Live using the MCP server by specifying the track index and desired name, enabling precise control for AI-assisted music production.

Instructions

Set the name of a track.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
track_indexYes

Implementation Reference

  • The main handler function for the 'set_track_name_tool' MCP tool. It is registered via the @mcp.tool() decorator and delegates execution to the set_track_name helper function.
    @mcp.tool() def set_track_name_tool(ctx: Context, track_index: int, name: str) -> str: """Set the name of a track.""" return set_track_name(ctx, track_index, name)
  • Helper function that handles the logic for setting track name by sending a command to the Ableton remote connection.
    def set_track_name(ctx: Context, track_index: int, name: str) -> str: """ Set the name of a track. Parameters: - track_index: The index of the track to rename - name: The new name for the track """ try: ableton = get_ableton_connection() result = ableton.send_command( "set_track_name", {"track_index": track_index, "name": name} ) return f"Renamed track to: {result.get('name', name)}" except Exception as e: logger.error(f"Error setting track name: {str(e)}") return f"Error setting track name: {str(e)}"
  • Core implementation in the Ableton remote script that directly sets the track name using the Ableton Live API.
    def set_track_name(self, track_index: int, name: str) -> dict[str, Any]: """Set the name of a track""" try: track = self.get_track(track_index) track.name = name result = {"name": track.name} return result except Exception as e: self.log_message("Error setting track name: " + str(e)) raise

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/chaudepark/ableton-mcp'

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