Skip to main content
Glama

set_master_volume

Adjust master track output volume in dB. Set the final mix level to a specific dB value.

Instructions

Set the master track output volume in dB.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
volume_dbYes

Implementation Reference

  • The tool handler that sets the master track volume by assigning volume_db to master.volume via reapy, returning success or error.
    @mcp.tool()
    def set_master_volume(volume_db: float) -> dict:
        """Set the master track output volume in dB."""
        try:
            project = get_project()
            master = project.master_track
            master.volume = volume_db
            return {"success": True, "volume_db": master.volume}
        except Exception as e:
            return {"success": False, "error": str(e)}
  • Input schema: expects a float parameter volume_db (dB value). Returns a dict.
    def set_master_volume(volume_db: float) -> dict:
  • Registration: mastering_tools.register_tools is imported and called with the mcp FastMCP instance, which uses the @mcp.tool() decorator to register set_master_volume.
    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)
    _reg_midi(mcp)
    _reg_fx(mcp)
    _reg_audio(mcp)
    _reg_mixing(mcp)
    _reg_render(mcp)
    _reg_mastering(mcp)
  • Helper that ensures REAPER connection and returns a reapy.Project object, used by set_master_volume to access the master track.
    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 convey behavioral traits, but it only states the action. It does not disclose what happens when volume is out of range, if the change is immediate, or any side effects. The description is too minimal for full transparency.

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

Conciseness5/5

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

The description is a single, well-structured sentence of 7 words. Every word is necessary and front-loaded, with no extraneous information.

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

Completeness3/5

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

For a simple parameter setter with no output schema, the description is minimally acceptable but lacks details like valid range or relationship to other volume controls. An agent might need to infer or assume values, which could lead to errors.

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%, but the description only adds that volume is 'in dB'. No range, typical values, or constraints are provided. The parameter 'volume_db' is left largely undefined, forcing the agent to guess appropriate values.

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

Purpose5/5

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

The description 'Set the master track output volume in dB' clearly states the verb (Set), resource (master track output volume), and unit (dB). It differentiates well from siblings like set_track_volume (for non-master tracks) and set_master_fx_parameter (for FX parameters).

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 on when to use this tool versus alternatives like set_track_volume or set_master_fx_parameter. No prerequisites or context provided for the agent to decide appropriately.

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