Skip to main content
Glama

set_track_volume

Adjust the volume level for a specific track in Ableton Live by specifying track index and volume value to control audio output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
track_indexYes
volumeYes

Implementation Reference

  • The handler function for the 'set_track_volume' MCP tool. It is decorated with @mcp.tool() which registers it with the FastMCP server. The function sends a 'set_track_volume' command to the Ableton remote script via the established connection, handling errors and returning a status message.
    @mcp.tool() def set_track_volume(ctx: Context, track_index: int, volume: float) -> str: try: ableton = get_ableton_connection() result = ableton.send_command("set_track_volume", {"track_index": track_index, "volume": volume}) return f"Set track '{result.get('track_name')}' volume to {result.get('volume'):.2f}" except Exception as e: logger.error(f"Error setting track volume: {str(e)}") return f"Error setting track volume: {str(e)}"

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