Skip to main content
Glama

create_track

Add a new track to REAPER projects with customizable name and position for audio and MIDI arrangement.

Instructions

Insert a new track.

  • name: track name (default "Track N")

  • index: 0-based position (default: append at end)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
indexNo

Implementation Reference

  • The MCP tool handler function for 'create_track' in the server. It wraps the logic by calling the reaper_adapter.
    def create_track(name: str | None = None, index: int | None = None) -> dict[str, Any]:
        """
        Insert a new track.
        - name: track name (default "Track N")
        - index: 0-based position (default: append at end)
        """
        try:
            return _wrap(adapter.create_track(name=name, index=index))
        except Exception as exc:
            return _err(exc)
  • Registration of the create_track tool using the @mcp.tool() decorator.
    @mcp.tool()
    def create_track(name: str | None = None, index: int | None = None) -> dict[str, Any]:
  • The adapter function that interfaces with the REAPER client to execute the create_track action.
    def create_track(
        self,
        name: str | None = None,
        index: int | None = None,
    ) -> dict[str, Any]:
        return self._client.call("create_track", name=name, index=index)

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/danielkinahan/ReaMCP'

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