Skip to main content
Glama

set_track_name

Change track names in Ableton Live by specifying the track index and new name to organize your music production session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
track_indexYes

Implementation Reference

  • The MCP tool handler for 'set_track_name'. This function is decorated with @mcp.tool() for automatic registration. It connects to the Ableton remote script via get_ableton_connection(), sends the rename command, and returns a formatted response or error.
    @mcp.tool() def set_track_name(ctx: Context, track_index: int, name: str) -> str: 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)}"
  • Within the AbletonConnection.send_command method, 'set_track_name' is classified as a modifying command, which receives extended timeout (15s) and small delays before/after sending to accommodate Ableton's processing time.
    is_modifying_command = command_type in [ "create_midi_track", "create_audio_track", "set_track_name", "create_clip", "add_notes_to_clip", "set_clip_name", "set_tempo", "fire_clip", "stop_clip", "set_device_parameter", "start_playback", "stop_playback", "load_instrument_or_effect", "load_browser_item" ]

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/Milesy1/MCP-Ableton-API'

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