Skip to main content
Glama

create_track

Add a new audio track in REAPER DAW for music composition and production workflows.

Instructions

Create a new track. Args: name: Name for the new track

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoNew Track

Implementation Reference

  • MCP tool handler for 'create_track'. This is the primary entry point for the tool, decorated with @mcp.tool() for registration and execution. It invokes the ReaperBridge to perform the track creation.
    @mcp.tool() def create_track(ctx: Context, name: str = "New Track") -> str: """ Create a new track. Args: name: Name for the new track """ bridge = get_bridge() result = bridge.create_track(name) return result.get("message", "Track created")
  • Core implementation logic in ReaperBridge.create_track. Triggers REAPER action ID 40001 to insert a new track, then writes a file-based command to name the newly selected track.
    def create_track(self, name: str = "New Track") -> Dict[str, Any]: """Create a new track via action then file command for naming.""" # First trigger insert track action self.trigger_action(40001) # Then send naming command via file self._write_command("name_selected_track", {"name": name}) return {"success": True, "message": f"Created track: {name}"}
  • The @mcp.tool() decorator registers 'create_track' as an MCP tool, with input schema inferred from the function signature and docstring.
    @mcp.tool() def create_track(ctx: Context, name: str = "New Track") -> str: """ Create a new track. Args: name: Name for the new track """ bridge = get_bridge() result = bridge.create_track(name) return result.get("message", "Track created")

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/yura9011/scythe_mcp_reaper'

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