Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_romsA

Lists ROM files available on the server (from its --roms-dir). Use the returned "name" with load_rom.

load_romA

Loads a ROM into the emulator and starts the game, paused, ready for the next tool call. Provide either "name" (from list_roms) or "romBase64" + "fileName" for a ROM not in the library. Returns the first screenshot once the game has booted — this can take a while the first time a system's core is downloaded.

reset_emulatorA

Hard-resets the currently loaded game (equivalent to a console reset button). Returns a fresh screenshot.

get_current_screenA

Captures the current emulator frame as a PNG image, without changing emulator state.

control_emulatorA

Presses or releases a controller button. The emulator briefly resumes just long enough for the input to register, then pauses again — so it never runs unattended while you're "thinking". To hold a direction across multiple skip_frames() calls, send state="down" once and state="up" later.

skip_framesA

Advances the emulator by exactly N core-internal frames (frame-accurate, not wall-clock), then pauses and returns a fresh screenshot. Use this to let held inputs or animations play out. Above ~180 frames, native fast-forward is used so long waits do not block on real time.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
OpalEmu ViewerLive view of the emulator screen with on-screen controls.

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/thevalmarch/opalemu-mcp'

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