Skip to main content
Glama

set_track_volume

Adjust a track's volume level in decibels by specifying the track index and desired volume value, with a range from -150 dB to +12 dB.

Instructions

Set track volume in dB. Range: roughly -150 to +12 dB.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
track_indexYes
volume_dbYes

Implementation Reference

  • The set_track_volume tool handler: accepts a track_index and volume_db (float in dB), looks up the track via reapy, sets track.volume, and returns success/error.
    @mcp.tool()
    def set_track_volume(track_index: int, volume_db: float) -> dict:
        """Set track volume in dB. Range: roughly -150 to +12 dB."""
        try:
            project = get_project()
            track = project.tracks[track_index]
            track.volume = volume_db
            return {"success": True, "track_index": track_index, "volume_db": track.volume}
        except Exception as e:
            return {"success": False, "error": str(e)}
  • The register_tools function receives the mcp (FastMCP) instance. The @mcp.tool() decorator above set_track_volume registers it as an MCP tool.
    def register_tools(mcp):
  • In server.py, track_tools.register_tools is imported and called with the mcp instance, which triggers the @mcp.tool() decorators to register all track tools including set_track_volume.
    from reaper_mcp.track_tools import register_tools as _reg_track
    from reaper_mcp.midi_tools import register_tools as _reg_midi
    from reaper_mcp.fx_tools import register_tools as _reg_fx
    from reaper_mcp.audio_tools import register_tools as _reg_audio
    from reaper_mcp.mixing_tools import register_tools as _reg_mixing
    from reaper_mcp.render_tools import register_tools as _reg_render
    from reaper_mcp.mastering_tools import register_tools as _reg_mastering
    from reaper_mcp.analysis_tools import register_tools as _reg_analysis
    
    _reg_project(mcp)
    _reg_track(mcp)
  • The get_project() helper ensures a REAPER connection and returns the current project, used by set_track_volume to access tracks.
    def get_project() -> reapy.Project:
        ensure_connected()
        return reapy.Project()
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must disclose behavioral traits. It only mentions the volume range, omitting that this is a mutation operation, potential effects on automation, or permissions needed. The transparency is minimal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with two sentences, no extraneous words. However, it could be structured to include more essential details without losing brevity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and no parameter descriptions, the description is too sparse. It does not explain return values, validation, or typical usage patterns, leaving the agent underinformed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description should clarify parameter meaning. It does not explain track_index (e.g., 0-based or 1-based) or volume_db (e.g., 0 dB = unity). No added value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action 'Set track volume' and includes the unit (dB) and range, distinguishing this tool from siblings like set_master_volume or set_send_volume. However, it could be more explicit about the target being an individual track.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool vs alternatives (e.g., set_master_volume) or prerequisites (e.g., track must exist). The description lacks usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/bonfire-audio/reaper-mcp'

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