Skip to main content
Glama
laszlopere

mcp-tmux

by laszlopere

tmux_run_shell

Run a shell command inside tmux via run-shell. Supports background execution and returns the exit code along with any output.

Instructions

Run a shell command from tmux via run-shell.

background=True (-b) runs it without waiting. Note: tmux surfaces the command's stdout in a message/copy buffer rather than returning it here, so output is usually empty — to capture a command's output prefer tmux_run. Returns {"output", "exit_code"}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYes
backgroundNo
target_paneNo
targetNo
Behavior4/5

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

With no annotations, the description carries full burden. It explains key behavioral traits: stdout is not returned but goes to a buffer, background mode runs without waiting, and the return format is `{output, exit_code}`. It could further detail error handling or side effects, but the major behavioral aspects are well disclosed.

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

Conciseness4/5

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

The description is concise at 4 sentences, front-loads the purpose, and uses clear structure. It efficiently conveys key info without extra fluff. Minor improvement could be listing parameters more explicitly, but overall it is well-organized.

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

Completeness3/5

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

Given the moderate complexity of a command runner tool and the lack of an output schema, the description explains return values and core behavior. However, it omits descriptions for `target_pane` and `target` parameters, and does not mention prerequisites (e.g., tmux session existence) or error conditions. This creates gaps for a fully informed agent.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate. It mentions only the `background` parameter and its effect. The critical parameters `command`, `target_pane`, and `target` are not described, leaving the agent to infer their meaning from the schema alone. This is insufficient for a 4-parameter tool.

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 'Run a shell command from tmux via `run-shell`.' It distinguishes itself from the sibling tool `tmux_run` by explicitly noting that `tmux_run` is preferred for capturing output, making the purpose and differentiation very clear.

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 explicit guidance on when to use this tool vs `tmux_run`, advising to prefer `tmux_run` for capturing command output. It also explains the effect of the `background` flag. However, it does not cover usage scenarios for all siblings or provide explicit 'when not to use' beyond this comparison.

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