Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
ssh_executeA

Execute a single command on a Linux host via SSH with an ephemeral credential. Prefer this tool over ssh_session_open when you only need to run one command or independent commands. Returns stdout, stderr and exit_code. exit_code != 0 means remote command failure, NOT a tool error; treat it like a process that exits with an error. BEFORE calling: use ssh_list_servers to learn the host capabilities. sudo=true ONLY if allow_sudo=true; if allow_sudo=false, DO NOT retry with sudo and inform the user. pty=true ONLY if allow_pty=true and the command needs a TTY (with pty, stdout and stderr are merged). ttl_seconds is optional; omit to use the maximum allowed by the host policy.

ssh_get_fileA

Read a file from a Linux host via SSH with an ephemeral credential. Returns the content as text, or base64 (base64=true in the result) when the file is not valid UTF-8. REQUIRES allow_file_transfer=true on the host (see ssh_list_servers); if false DO NOT retry, the signer will reject it. The read runs as the host's configured SSH user (no sudo); the file must be readable by that user. On a host with a command_policy and shell_parse (the default) the transfer command (head -c N < path) is ALWAYS denied — the policy parser rejects its file redirect and no allow pattern changes that; if the signer denies it DO NOT retry. Only hosts with shell_parse:false can allowlist it. A file larger than max_bytes (default: the broker's file_transfer_max_bytes, 512 KiB) is an ERROR, not a truncation. The content's sha256 is recorded in the audit log.

ssh_list_serversA

List the hosts accessible to the caller with their capabilities (hosts outside the user's RBAC groups are not listed). ALWAYS call before ssh_execute or ssh_session_open. Fields per host: allow_sudo=true → the host accepts NOPASSWD sudo elevation (sudo=true may be used); allow_sudo=false → DO NOT attempt sudo, the signer will reject it. allow_pty=true → the host accepts PTY (pty=true or mode=pty may be used); allow_pty=false → DO NOT attempt PTY. allow_file_transfer=true → ssh_put_file and ssh_get_file may be used; allow_file_transfer=false → DO NOT attempt file transfers, the signer will reject them. jump → name of the bastion through which the host is reached (informational).

ssh_put_fileA

Write a file on a Linux host via SSH with an ephemeral credential. Creates or OVERWRITES the destination file with the given content. Use content_base64=true for binary data (the content field is decoded before writing). REQUIRES allow_file_transfer=true on the host (see ssh_list_servers); if false DO NOT retry, the signer will reject it. The write runs as the host's configured SSH user (no sudo); the destination must be writable by that user. On a host with a command_policy and shell_parse (the default) the transfer command (cat > path) is ALWAYS denied — the policy parser rejects its file redirect and no allow pattern changes that; if the signer denies it DO NOT retry. Only hosts with shell_parse:false can allowlist it. Content is limited by the broker's file_transfer_max_bytes (default 512 KiB). The content's sha256 is recorded in the audit log.

ssh_session_closeA

Close a persistent SSH session and release the connection. Always call when done working with a session; an unclosed session keeps its SSH connection until it is reaped when the opening certificate expires, or by the idle or maximum-lifetime timeout (whichever comes first).

ssh_session_execA

Execute a command in a session opened with ssh_session_open. Returns stdout, stderr and exit_code. exit_code != 0 means remote command failure, NOT a tool error. The command is preflighted against the current signer policy before execution; target and bastion access, end-user groups, sudo, sudo_user, PTY, and the host's physical route are revalidated, and audit-mode policy warnings are returned in warnings. If a policy is enabled after a shell/pty session was opened, later commands in that session are rejected. Session state (current directory, environment variables) persists across calls when mode=shell or mode=pty. In mode=pty a command is limited to 4000 bytes (tty line limit); longer commands are rejected, so use mode=exec or split them. In mode=pty a command may contain printable text only; control bytes, tab included (the tty line discipline or readline completion would edit the line before the shell runs it), are rejected.

ssh_session_openA

Open a persistent SSH session that reuses the connection across commands. Use when you need multiple commands with shared state (e.g. cd to a directory and then operate in it) or interactive programs. For isolated commands prefer ssh_execute (simpler, stronger isolation guarantee). Available modes: exec (default, independent commands), shell (stateful sh: cd and variables persist), pty (shell with TTY for interactive programs). sudo=true ONLY if allow_sudo=true (see ssh_list_servers); if allow_sudo=false DO NOT retry. mode=pty ONLY if allow_pty=true. Every ssh_session_exec is preflighted against the current signer policy, so policy reloads revalidate target and bastion access, end-user groups, sudo, sudo_user, PTY, and the host's physical route for already-open sessions. On command-policy hosts, mode=exec is allowed; mode=shell and mode=pty are rejected. Returns session_id for use with ssh_session_exec. IMPORTANT: always close the session with ssh_session_close when done; an open session holds an SSH connection and is otherwise closed when the certificate that opened it expires, or after an idle or maximum-lifetime timeout (whichever comes first).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 7 tools

Disambiguation4/5

Each tool targets a distinct action (list, execute, session lifecycle, file transfer), and the descriptions explicitly steer agents between ssh_execute and ssh_session_open/exec (isolated command vs stateful session). The only real risk is conflating ssh_execute with ssh_session_exec, but the stated 'prefer ssh_execute for one-off commands' guidance mitigates it.

Naming Consistency4/5

All names share an ssh_ prefix with a verb_noun shape (ssh_get_file, ssh_put_file, ssh_list_servers, ssh_session_open). The session family uses an extra noun segment (ssh_session_exec/close), and ssh_execute vs ssh_session_exec are slightly asymmetric, but the pattern remains predictable.

Tool Count5/5

Seven tools is a tight, well-scoped surface: host discovery, one-shot execution, a session lifecycle trio, and file get/put. Nothing appears redundant and each tool earns its place.

Completeness4/5

The lifecycle is covered end to end: list hosts, execute, open/exec/close sessions, and transfer files both directions, with capability gating via ssh_list_servers. Minor gaps exist (no explicit polling/streaming for long-running commands, no port-forward/tunnel or directory listing operation), but agents can work around these with ssh_execute.

Maintenance

ActivityMaintained
ResponsivenessUsually handled