Skip to main content
Glama

set_time_signature

Set the time signature of a REAPER project by providing the numerator and denominator values (e.g., 4/4, 3/4, 6/8).

Instructions

Set the project time signature, e.g. 4/4, 3/4, 6/8.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
numeratorYes
denominatorYes

Implementation Reference

  • The handler function for the set_time_signature tool. Uses reapy's Project.time_signature setter to update the time signature.
    @mcp.tool()
    def set_time_signature(numerator: int, denominator: int) -> dict:
        """Set the project time signature, e.g. 4/4, 3/4, 6/8."""
        try:
            project = get_project()
            project.time_signature = (numerator, denominator)
            return {"success": True, "time_signature": f"{numerator}/{denominator}"}
        except Exception as e:
            return {"success": False, "error": str(e)}
  • The server module imports and calls register_tools from project_tools.py, which registers set_time_signature as an MCP tool via the @mcp.tool() decorator.
    # Import each tool module's register_tools function and call it with the mcp instance.
    # The imports must happen after mcp is created to avoid circular dependencies.
    from reaper_mcp.project_tools import register_tools as _reg_project
    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)
    _reg_midi(mcp)
    _reg_fx(mcp)
    _reg_audio(mcp)
    _reg_mixing(mcp)
    _reg_render(mcp)
    _reg_mastering(mcp)
    _reg_analysis(mcp)
  • The schema/type definition: takes numerator (int) and denominator (int), returns a dict.
    @mcp.tool()
    def set_time_signature(numerator: int, denominator: int) -> dict:
Behavior2/5

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

Minimal behavioral details; no mention of side effects, permissions, or effects on existing items.

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?

Extremely concise, single sentence with clear examples; no 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?

Provides basic usage but lacks context on what changes occur (e.g., updates project metadata) or confirmation. Adequate for a simple setter.

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

Parameters3/5

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

Description adds value by showing example time signature formats, but does not explain parameter constraints or ranges.

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?

Clearly states the action and resource with example values. Does not explicitly differentiate from set_tempo, but examples make it unambiguous.

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 usage context provided; no mention of when to use, alternatives, or prerequisites.

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