Skip to main content
Glama
laszlopere

mcp-tmux

by laszlopere

tmux_if_shell

Conditionally execute tmux commands by running a shell command or tmux format, then running a specified command if true and optionally another if false.

Instructions

Run a tmux command conditionally with if-shell.

Runs condition as a shell command; if it succeeds, runs the tmux command if_command, otherwise else_command (if given). is_format=True (-F) treats condition as a tmux format that is true unless it evaluates to empty or "0" (no shell). background=True (-b) runs in the background.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conditionYes
if_commandYes
else_commandNo
backgroundNo
is_formatNo
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 conditional execution, format mode, and background flag. It does not cover error handling or side effects, but overall provides good transparency for a conditional command.

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?

Two concise paragraphs with a clear summary line followed by parameter details. No unnecessary words. Well-structured and easy to parse.

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?

For a tool with 6 parameters and conditional logic, the description covers the core behavior and most parameters. Missing explanation of target parameter, but otherwise sufficient for an agent to understand and invoke the tool correctly.

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

Parameters4/5

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

Schema coverage is 0%, so description must add meaning. It explains condition, if_command, else_command, background, is_format. However, the target parameter is not mentioned, leaving it semantically incomplete for a 6-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 the tool runs a tmux command conditionally based on a shell command or format condition. It differentiates itself from other tmux tools by focusing on conditional execution.

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 explains the condition behavior and two modes (shell vs format). It does not explicitly mention when to use this tool versus alternatives like tmux_command, but the conditional nature is implied. Clear context for typical usage.

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