Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IBMI_SSLNoEnable TLSfalse
IBMI_HOSTYesIBM i hostname or IP
IBMI_PORTNoTN5250 port23
IBMI_USERNoUsername for auto-signon
IBMI_CODEPAGENoEBCDIC codepagecp037
IBMI_PASSWORDNoPassword for auto-signon
IBMI_DEVICE_NAMENoVirtual device name
IBMI_TERMINAL_TYPENoTerminal typeIBM-3179-2

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
connectA

Connect to an IBM i system via TN5250.

Args: host: IBM i hostname or IP. Defaults to IBMI_HOST env var. port: TN5250 port. Defaults to IBMI_PORT env var or 23. use_ssl: Enable TLS. Defaults to IBMI_SSL env var.

Returns the initial screen after connection.

disconnectA

Disconnect the active TN5250 session.

read_screenA

Read the current 5250 screen content.

Returns structured data with:

  • screen: list of text rows (the visible display)

  • cursor: current cursor position {row, col} (1-based)

  • fields: list of input fields with position, length, value, and type

  • dimensions: screen size {rows, cols}

send_keysB

Type text into the current input field at the cursor position.

Args: text: The text to type.

Returns the updated screen state.

send_keyA

Send an attention/function key and wait for the host response.

Args: key: Key name. Valid values: Enter, F1-F24, PageUp, PageDown, Tab, Backtab, Clear, Help, Print, Attn.

Returns the updated screen after the host processes the key.

set_cursorA

Position the cursor at the specified location.

Args: row: Row number (1-based, top row is 1). col: Column number (1-based, leftmost column is 1).

Returns the updated screen state.

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/WhitehornLtd/ibmi-mcp'

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