Skip to main content
Glama

get_track_info

Extract detailed track information including FX and items to facilitate automated mixing and project management in REAPER DAW.

Instructions

Get detailed information about a track including FX and items.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
track_indexYes

Implementation Reference

  • The actual implementation of the get_track_info tool. It accepts a track_index, retrieves the track via reapy, and returns detailed info including FX list and items (position, length, name).
    def get_track_info(track_index: int) -> dict:
        """Get detailed information about a track including FX and items."""
        try:
            project = get_project()
            track = project.tracks[track_index]
    
            fx_list = []
            for i in range(track.n_fxs):
                fx = track.fxs[i]
                fx_list.append({"index": i, "name": fx.name, "enabled": fx.is_enabled})
    
            items = []
            for i in range(track.n_items):
                item = track.items[i]
                items.append({
                    "index": i,
                    "position": item.position,
                    "length": item.length,
                    "name": item.name,
                })
    
            return {
                "success": True,
                "track_index": track_index,
                "name": track.name,
                "volume_db": track.volume,
                "pan": track.pan,
                "muted": track.mute,
                "soloed": track.solo,
                "fx_count": track.n_fxs,
                "fx": fx_list,
                "item_count": track.n_items,
                "items": items,
            }
        except Exception as e:
            return {"success": False, "error": str(e)}
  • The @mcp.tool() decorator that registers get_track_info as an MCP tool.
    @mcp.tool()
  • The register_tools function is called from server.py to register all track tools including get_track_info.
    def register_tools(mcp):
  • Import of track_tools.register_tools in the server bootstrap.
    from reaper_mcp.track_tools import register_tools as _reg_track
  • The get_project() helper used by get_track_info to obtain the current REAPER project.
    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?

No annotations provided, so description must disclose behavioral traits. It mentions 'detailed information' but does not specify side effects, access requirements, or output format. This is insufficient for an agent to gauge safety or expectations.

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

Conciseness3/5

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

The description is a single sentence, front-loaded with the primary action. However, it is too brief, omitting necessary details for safe use. Conciseness here sacrifices completeness.

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?

The tool is simple (one param, no output schema), but the description fails to explain the return structure or how the param is interpreted. Contextual completeness is low for a read operation; the agent may not know what to do with the result.

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?

Only parameter is track_index, with 0% schema description coverage. The description adds no meaning about indexing (0- or 1-based), valid range, or required format. The schema provides only type and name, so the agent lacks critical usage detail.

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 clearly states it retrieves detailed information about a track, listing FX and items. This verb+resource structure differentiates it from siblings like list_tracks (which likely provides summary) and get_fx_parameters (which focuses on single 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 siblings. No mention of prerequisites or context. For example, it does not indicate if tracks need to exist first, or that it is a read-only operation.

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