Skip to main content
Glama
devnullvoid

mcp-ssh-tmux

by devnullvoid

send_command

Execute commands in an active SSH session and capture the terminal output, automatically waiting for completion.

Instructions

Send a command to an active session and return the screen snapshot.

This tool automatically polls waiting for the command to complete. The response includes [INFO: ...] hints about detected prompts or interactive input requests.

For long-running commands (builds, downloads, etc.), use get_snapshot() to check progress periodically. Do NOT close the session while processes are running - they will be terminated.

Args: session_id: The ID of the session (format: user@host-). command: The command to send. lines: Number of lines to capture from the end of the screen and tmux scrollback (default 40). timeout: Max seconds to poll for command completion (default 2.0). Increase for slower commands like package installs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linesNo
commandYes
timeoutNo
session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure. It explains the automatic polling behavior, the inclusion of [INFO] hints, the warning about closing sessions with running processes, and the default timeout behavior. This is substantial context beyond the schema, though it stops short of detailing error handling or failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured: a one-sentence summary, followed by behavioral details, guidance for long-running commands, a critical warning, and then a clear Args section. Every sentence provides necessary information, and the format makes it easy for an agent to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity and the presence of an output schema, the description is remarkably complete. It covers what the tool does, how it behaves (polling, hints), when to use alternatives, parameter semantics, and a safety warning. No critical aspect is missing for an agent to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has no descriptions (0% coverage), so the description fully compensates. Each parameter is explained with format (session_id: 'user@host-<id>'), purpose (command), defaults (lines=40, timeout=2.0), and usage guidance (increase timeout for slow installs). This adds significant value over the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: 'Send a command to an active session and return the screen snapshot.' It uses a specific verb and resource, distinguishing it from siblings like send_keys (keyboard input) and get_snapshot (snapshot only). The wording makes the tool's core purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear usage context, including automatic polling and the ability to increase timeout for slower commands. It explicitly recommends get_snapshot() for long-running commands, offering an alternative. It does not explicitly contrast send_command with send_keys, but the command vs. keystroke distinction is inherent in the wording.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/devnullvoid/mcp-ssh-tmux'

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