Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LGTV_HOSTYesTV IP address on the local network
LGTV_PORTNoPort for WebSocket connection (3001 = wss, 3000 = plain ws)3001
LGTV_CLIENT_KEYNoPairing key; obtained and saved automatically on first use

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
set_backlightA

Set the TV backlight level from 0 to 100. This is the primary brightness control for an LG webOS TV.

set_picture_settingA

Set a picture setting (backlight, contrast, brightness or color) from 0 to 100.

set_picture_modeB

Set the picture mode (e.g. cinema, normal, vivid, game, expert1, expert2, filmMaker, hdrEffect).

get_picture_settingsA

Read current picture settings (backlight, contrast, brightness, color).

volume_upA

Increase the TV volume by one step.

volume_downA

Decrease the TV volume by one step.

set_volumeA

Set the TV volume to an absolute level from 0 to 100.

get_volumeA

Read the current volume and mute state.

set_muteB

Mute or unmute the TV.

list_inputsA

List available external inputs (HDMI, etc.).

set_inputB

Switch to an external input by its id (e.g. HDMI_1).

list_appsA

List installed apps and their launch ids.

launch_appA

Launch an app by its id (e.g. netflix, youtube.leanback.v4, com.webos.app.hdmi1).

close_appC

Close an app by its id.

get_foreground_appA

Get the currently foreground app.

channel_upA

Go to the next channel.

channel_downA

Go to the previous channel.

set_channelC

Tune to a channel by its channelId.

list_channelsA

List available TV channels.

get_current_channelB

Get the currently tuned channel.

media_playB

Send media play.

media_pauseB

Send media pause.

media_stopA

Send media stop.

media_rewindC

Send media rewind.

media_fast_forwardC

Send media fast-forward.

power_offA

Turn the TV off (standby).

screen_offA

Turn off the screen while keeping the TV running.

screen_onB

Turn the screen back on.

get_power_stateA

Read the current power state.

show_toastB

Display a toast notification message on the TV.

send_buttonC

Send a remote-control button press. Common names: UP, DOWN, LEFT, RIGHT, ENTER, BACK, EXIT, HOME, MENU, INFO, MUTE, VOLUMEUP, VOLUMEDOWN, CHANNELUP, CHANNELDOWN, PLAY, PAUSE, STOP, REWIND, FASTFORWARD, RED, GREEN, YELLOW, BLUE, 0-9, DASH.

set_3d_onC

Enable 3D mode.

set_3d_offB

Disable 3D mode.

get_system_infoA

Get TV system information (model, etc.).

get_software_infoA

Get TV software / firmware information.

get_service_listA

List available SSAP services on the TV.

ssap_requestA

Escape hatch: send a raw SSAP request to the TV. Provide the full uri (e.g. ssap://audio/getVolume) and an optional payload object.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/brunofgmag/lgtv-control-mcp'

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