Skip to main content
Glama

get_event

Retrieve tracks, instruments, and bank assignments for a specific event in FMOD Studio using AI coding agents.

Instructions

Return tracks, instruments, and bank assignments for one event.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
event_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler for get_event — builds a JavaScript snippet that uses studio.project.lookup() to find the event by path, then extracts tracks (master + group), modules (with audioFile and loopMode), and assigned banks. Returns path, guid, name, tracks, and banks as a dict.
    async def get_event(client: StudioClient, event_path: str) -> dict[str, Any]:
        """Return tracks, instruments, and bank/bus assignments for a single event."""
        js = f"""
            var evt = studio.project.lookup({json.dumps(event_path)});
            if (!evt) throw new Error("No object at path: " + {json.dumps(event_path)});
            if (evt.entity !== "Event") throw new Error("Not an event: " + {json.dumps(event_path)} + " (is " + evt.entity + ")");
            var tracks = [];
            var allTracks = [];
            if (evt.masterTrack) allTracks.push(evt.masterTrack);
            if (evt.groupTracks) for (var i = 0; i < evt.groupTracks.length; i++) allTracks.push(evt.groupTracks[i]);
            allTracks.forEach(function(t) {{
                var mods = [];
                if (t.modules) for (var j = 0; j < t.modules.length; j++) {{
                    var m = t.modules[j];
                    var info = {{ type: m.entity || null, guid: m.id || null }};
                    try {{ if (m.audioFile) info.audioFile = m.audioFile.getPath ? m.audioFile.getPath() : String(m.audioFile.id); }} catch (e) {{}}
                    try {{ if (typeof m.loopMode !== 'undefined') info.loopMode = m.loopMode; }} catch (e) {{}}
                    mods.push(info);
                }}
                tracks.push({{ name: t.name || null, guid: t.id || null, modules: mods }});
            }});
            var banks = [];
            try {{
                var dests = evt.relationships && evt.relationships.banks ? evt.relationships.banks.destinations : null;
                if (dests && dests.length) for (var k = 0; k < dests.length; k++) banks.push(dests[k].getPath());
            }} catch (e) {{}}
            return {{
                path: evt.getPath(),
                guid: evt.id,
                name: evt.name,
                tracks: tracks,
                banks: banks
            }};
        """
        return await client.eval(js)
  • FastMCP tool registration — decorates an async function with @mcp.tool() that delegates to discovery.get_event(). Defines the public tool signature (event_path: str) and docstring.
    @mcp.tool()
    async def get_event(event_path: str) -> dict[str, Any]:
        """Return tracks, instruments, and bank assignments for one event."""
        return await discovery.get_event(_studio(), event_path)
  • Input: event_path (str). Output: dict with keys path (str), guid (str), name (str), tracks (list of dicts with name, guid, modules), banks (list of bank paths).
    async def get_event(client: StudioClient, event_path: str) -> dict[str, Any]:
        """Return tracks, instruments, and bank/bus assignments for a single event."""
        js = f"""
            var evt = studio.project.lookup({json.dumps(event_path)});
            if (!evt) throw new Error("No object at path: " + {json.dumps(event_path)});
            if (evt.entity !== "Event") throw new Error("Not an event: " + {json.dumps(event_path)} + " (is " + evt.entity + ")");
            var tracks = [];
            var allTracks = [];
            if (evt.masterTrack) allTracks.push(evt.masterTrack);
            if (evt.groupTracks) for (var i = 0; i < evt.groupTracks.length; i++) allTracks.push(evt.groupTracks[i]);
            allTracks.forEach(function(t) {{
                var mods = [];
                if (t.modules) for (var j = 0; j < t.modules.length; j++) {{
                    var m = t.modules[j];
                    var info = {{ type: m.entity || null, guid: m.id || null }};
                    try {{ if (m.audioFile) info.audioFile = m.audioFile.getPath ? m.audioFile.getPath() : String(m.audioFile.id); }} catch (e) {{}}
                    try {{ if (typeof m.loopMode !== 'undefined') info.loopMode = m.loopMode; }} catch (e) {{}}
                    mods.push(info);
                }}
                tracks.push({{ name: t.name || null, guid: t.id || null, modules: mods }});
            }});
            var banks = [];
            try {{
                var dests = evt.relationships && evt.relationships.banks ? evt.relationships.banks.destinations : null;
                if (dests && dests.length) for (var k = 0; k < dests.length; k++) banks.push(dests[k].getPath());
            }} catch (e) {{}}
            return {{
                path: evt.getPath(),
                guid: evt.id,
                name: evt.name,
                tracks: tracks,
                banks: banks
            }};
        """
        return await client.eval(js)
Behavior2/5

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

No annotations are provided, and the description does not disclose behavioral traits such as whether the operation is read-only, error handling for invalid event_path, or any side effects. For a read operation, this is a minimal disclosure.

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 very concise with a single sentence, but it omits critical details. It is not overly verbose, but its brevity comes at the cost of 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?

Given the tool has one required parameter with no schema description and no parameter details in the tool description, the description is insufficient for an agent to correctly identify and invoke the tool. The output schema exists but is not leveraged.

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?

The schema has 0% description coverage for the single parameter event_path, and the tool description does not clarify its format or expected values. This leaves the agent without sufficient information to correctly specify the 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?

The description clearly states the tool returns tracks, instruments, and bank assignments for one event, using a specific verb and resource. It effectively distinguishes from sibling tools like list_events and create_event, which serve different purposes.

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 is provided on when to use this tool versus alternatives like list_events. The description lacks explicit context about prerequisites or use cases, leaving the agent without direction.

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/jmperez127/fmod-mcp'

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