Skip to main content
Glama

romm_collection_detail

Retrieve and display all ROMs within a specified collection to manage and organize your game library effectively.

Instructions

List ROMs in a specific collection.

collection_id: The collection's ID (from romm_collections).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idYes

Implementation Reference

  • The handler function that retrieves and formats the collection details using the ROMM API.
    async def romm_collection_detail(collection_id: int) -> str:
        """List ROMs in a specific collection.
    
        collection_id: The collection's ID (from romm_collections).
        """
        data = await _get(f"collections/{collection_id}")
    
        if not isinstance(data, dict) or "id" not in data:
            return f"Collection {collection_id} not found."
    
        name = data.get("name", "Unknown")
        desc = data.get("description", "")
        roms = data.get("roms", [])
    
        lines = [f"{name}"]
        if desc:
            lines.append(f"  {desc[:200]}")
        lines.append(f"  ROMs: {len(roms)}\n")
    
        if isinstance(roms, list):
            for i, rom in enumerate(roms[:50], 1):
                if isinstance(rom, dict):
                    rom_name = rom.get("name") or rom.get("rom_name", "Unknown")
                    platform = rom.get("platform_display_name") or rom.get("platform_slug", "")
                    line = f"  {i}. {rom_name}"
                    if platform:
  • server.py:708-709 (registration)
    Registration of the romm_collection_detail tool using the @mcp.tool() decorator.
    @mcp.tool()
    async def romm_collection_detail(collection_id: int) -> str:

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/lodordev/mcp-romm'

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