Skip to main content
Glama

set_master_fx_parameter

Adjust a master track FX plugin parameter by specifying the FX index, parameter index, and a value between 0.0 and 1.0 for precise mix automation.

Instructions

Set a normalized parameter (0.0–1.0) on a master track FX plugin.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fx_indexYes
param_indexYes
valueYes

Implementation Reference

  • The core handler function that sets a normalized parameter (0.0–1.0) on a master track FX plugin by fx_index and param_index.
    @mcp.tool()
    def set_master_fx_parameter(fx_index: int, param_index: int, value: float) -> dict:
        """Set a normalized parameter (0.0–1.0) on a master track FX plugin."""
        try:
            project = get_project()
            master = project.master_track
            fx = master.fxs[fx_index]
            fx.params[param_index].normalized_value = value
            return {
                "success": True,
                "fx_index": fx_index,
                "param_index": param_index,
                "param_name": fx.params[param_index].name,
                "value": value,
            }
        except Exception as e:
            return {"success": False, "error": str(e)}
  • Imports and calls register_tools from mastering_tools.py to register all master tools including set_master_fx_parameter on the MCP server.
    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)
    _reg_analysis(mcp)
  • Similar set_fx_parameter function for track FX (non-master) – references get_fx_parameters to discover param indices used in docstrings of set_master_fx_parameter and related master tools.
    import logging
    
    import reapy
    from reapy import reascript_api as RPR
    
    from reaper_mcp.connection import get_project
    
    logger = logging.getLogger("reaper_mcp.fx_tools")
    
    
    def register_tools(mcp):
    
        @mcp.tool()
        def add_fx(track_index: int, fx_name: str) -> dict:
            """
            Add an FX plugin to a track. Works for both instruments (VSTi) and effects (VST/AU).
            Use the exact plugin name as shown in REAPER's FX browser.
            Built-in Cockos plugins: ReaEQ, ReaComp, ReaDelay, ReaVerb, ReaLimit, ReaSynth,
            ReaSamplOmatic5000, ReaTune, ReaGate, ReaFIR, ReaXcomp.
            """
            try:
                project = get_project()
                track = project.tracks[track_index]
                fx_index = track.add_fx(fx_name)
                if fx_index < 0:
                    return {"success": False, "error": f"Plugin not found: '{fx_name}'"}
                fx = track.fxs[fx_index]
                return {
                    "success": True,
                    "fx_index": fx_index,
                    "name": fx.name,
                    "n_params": fx.n_params,
                    "track_index": track_index,
                }
            except Exception as e:
Behavior2/5

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

No annotations are provided, so the description bears full responsibility. It only states the action and value range, but does not disclose if the operation is destructive, what happens with out-of-range values, or any side effects on the plugin state.

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 a single sentence with 12 words, very concise. It front-loads the core action and value range. However, the brevity sacrifices necessary detail for completeness.

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

Completeness1/5

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

Given the lack of annotations and output schema, the three required parameters are fully underexplained. The description fails to guide on how to obtain fx_index and param_index, or what the tool returns. This is insufficient for correct invocation.

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

Parameters1/5

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

Schema description coverage is 0%, and the description adds no parameter-level explanation. The parameter names (fx_index, param_index, value) are not elaborated, leaving the agent to guess meanings like 'index of the FX plugin' or 'parameter index within that plugin'. The description only generalizes 'normalized parameter'.

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?

Clearly states the verb 'set' and the resource 'master track FX plugin', with the specific constraint of normalized value range (0.0-1.0). The sibling tool 'set_fx_parameter' implies this is for master track only, providing implicit distinction.

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

Usage Guidelines3/5

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

The description only states what it does, but does not provide explicit guidance on when to use this tool versus alternatives like 'set_fx_parameter'. No when-not-to-use or context provided.

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