Skip to main content
Glama

list_banks

Retrieve all banks from the currently open FMOD project to inventory and manage audio assets.

Instructions

List every bank in the currently open project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The actual implementation of list_banks. Uses FMOD Studio's JavaScript eval to call studio.project.model.Bank.findInstances(), filters valid banks, and maps each to {path, guid, name}.
    async def list_banks(client: StudioClient) -> list[dict[str, str]]:
        js = """
            return studio.project.model.Bank.findInstances()
                .filter(function(b) { return b.isValid; })
                .map(function(b) { return { path: b.getPath(), guid: b.id, name: b.name }; });
        """
        return await client.eval(js)
  • The MCP tool registration using @mcp.tool() decorator. Exposes list_banks as an MCP tool with description 'List every bank in the currently open project.' Delegates to discovery.list_banks(_studio()).
    @mcp.tool()
    async def list_banks() -> list[dict[str, str]]:
        """List every bank in the currently open project."""
        return await discovery.list_banks(_studio())
  • Return type schema: list[dict[str, str]] — each bank is a dict with path, guid, and name string fields.
    async def list_banks() -> list[dict[str, str]]:
  • Test file that verifies list_banks is registered as an expected tool in the FastMCP server tool registry.
        "list_banks",
        "list_events",
        "list_buses",
        "get_event",
        # audio + events
        "import_audio",
        "create_event",
        "add_single_sound",
        "set_event_property",
        "assign_to_bank",
        "assign_to_bus",
        # effects
        "list_effect_types",
        "add_effect",
        "list_effects",
        "get_effect",
        "set_effect_param",
        "remove_effect",
        "bypass_effect",
        # project
        "save_project",
        "build_banks",
        # escape
        "run_js",
    }
    
    
    def test_all_tools_registered():
        tools = set(mcp._tool_manager._tools.keys())
        missing = EXPECTED_TOOLS - tools
        extra = tools - EXPECTED_TOOLS
        assert not missing, f"Missing tools: {missing}"
        assert not extra, f"Unexpected extra tools: {extra}"
  • Unit test exercising the list_banks handler directly against the discovery module, verifying the correct JS findInstances call is made.
        js = _last_sent_js(mock_studio)
        assert "studio.version" in js
    
    
    async def test_list_banks_uses_find_instances(
Behavior3/5

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

No annotations provided, so the description carries full burden. It implies a read-only operation ('list') but adds no details about behavior beyond listing. For a simple listing tool, it's adequate but minimal.

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?

Single sentence, front-loaded with action and resource. No filler. Every word earns its place.

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

Completeness5/5

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

The tool has no parameters and an output schema exists. The description is complete for a simple list operation, covering scope and action. No additional information needed.

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

Parameters4/5

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

No parameters exist, so schema coverage is 100%. Baseline for 0 params is 4 per guidelines. The description adds context about scope ('currently open project') but no parameter details needed.

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 verb 'list' and resource 'banks in the currently open project'. It distinguishes from sibling tools like list_buses, list_effects, etc. by specifying the resource type.

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 vs alternatives. The description does not mention exclusions or when to prefer other listing tools.

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