Skip to main content
Glama
laszlopere

mcp-tmux

by laszlopere

tmux_run

Execute a shell command in a tmux pane and retrieve its output and exit code using marker-based capture for reliable results.

Instructions

Run a shell command in a pane and return just its output + exit code.

Types command into the pane bracketed by unique markers, then polls until the command finishes, and returns the text printed between the markers. This is the reliable alternative to send-keys + sleep + capture.

Intended for NON-interactive commands at a shell prompt. Returns {"completed", "exit_code", "output", "elapsed"}; on timeout, completed is False and output holds the raw capture so far.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
target_paneYes
commandYes
timeoutNo
historyNo
poll_intervalNo
targetNo
Behavior5/5

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

Discloses the exact mechanism (unique markers, polling) and return format ( {"completed", "exit_code", "output", "elapsed"} ), including timeout behavior. No annotations provided, so description carries full burden and meets it well.

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?

Concise, front-loaded with purpose, and every sentence adds essential information. No wasted words.

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

Completeness4/5

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

Covers core operation, return values, and timeout handling. Lacks explicit explanation of history and target parameters, but overall adequate given no output schema and no annotations.

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

Parameters3/5

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

Description adds meaning for command, timeout, and poll_interval, but misses target_pane, history, and target. With 0% schema coverage, it partially compensates but not fully.

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 it runs a shell command in a pane and returns output + exit code, and distinguishes itself from 'send-keys + sleep + capture' as a reliable alternative.

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

Usage Guidelines5/5

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

Explicitly states it is intended for non-interactive commands and contrasts with the send-keys approach, providing clear when-to-use guidance.

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

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