Skip to main content
Glama

set_track_volume

Adjust audio track volume levels in REAPER DAW by specifying track number and volume value for precise mixing control.

Instructions

Set track volume.

Args:
    track_number: Track number (1-based, as shown in REAPER)
    volume: Volume level (0.0 = -inf dB, 1.0 = 0 dB)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
track_numberYes
volumeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • MCP tool handler for set_track_volume: registers the tool via @mcp.tool(), validates/clamps input, delegates to ReaperBridge.set_track_volume, returns success/error message.
    @mcp.tool()
    def set_track_volume(ctx: Context, track_number: int, volume: float) -> str:
        """
        Set track volume.
        
        Args:
            track_number: Track number (1-based, as shown in REAPER)
            volume: Volume level (0.0 = -inf dB, 1.0 = 0 dB)
        """
        bridge = get_bridge()
        # Convert to 0-indexed internally
        if bridge.set_track_volume(track_number - 1, max(0.0, min(1.0, volume))):
            return f"Track {track_number} volume set to {volume}"
        return "Error: OSC command failed"
  • ReaperBridge helper method: sends OSC message to REAPER to set the volume of a specific track (1-indexed in OSC). Called by the MCP handler.
    def set_track_volume(self, track_index: int, volume: float) -> bool:
        """Set track volume (0.0 to 1.0 normalized)."""
        # REAPER OSC: /track/N/volume
        return self.send_osc(f"/track/{track_index + 1}/volume", float(volume))
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It implies a mutation operation ('Set') but doesn't describe side effects, permissions needed, error conditions, or what happens if the track doesn't exist. The description lacks critical behavioral context for a tool that modifies system state.

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 perfectly concise and well-structured. It starts with a clear purpose statement, then provides parameter explanations in a clean, bullet-like format. Every sentence earns its place by adding essential information without any wasted words.

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?

Given that there's an output schema (which handles return values) and the description provides good parameter semantics, the description is adequate for a simple mutation tool. However, with no annotations and incomplete behavioral transparency, there are gaps in understanding the tool's full implications and error handling.

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

Parameters5/5

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

The description provides excellent parameter semantics that go well beyond the input schema. The schema has 0% description coverage (just titles and types), but the description explains that 'track_number' is 1-based as shown in REAPER and that 'volume' ranges from 0.0 (-inf dB) to 1.0 (0 dB), adding crucial context that the schema lacks.

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 tool's purpose with a specific verb ('Set') and resource ('track volume'), making it immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'mute_track' or 'solo_track', which also affect track audio properties, so it doesn't reach the highest clarity level.

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?

The description provides no guidance on when to use this tool versus alternatives like 'mute_track' or 'solo_track', nor does it mention any prerequisites or context for usage. It simply states what the tool does without offering usage instructions.

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

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