Skip to main content
Glama
tmux-mcp-tools

tmux-mcp-tools

by PsychArch

Tmux Write File

tmux_write_file

Writes a file through a tmux pane using a heredoc, enabling file creation in remote SSH or container environments without direct filesystem access.

Instructions

Write file using heredoc.

Mainly for remote environments (SSH, containers) without direct filesystem access.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file_path": "<file_path>",
      "content": "<content>",
      "target_pane": "<target_pane>"
    },
    "name": "tmux_write_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesFile content
file_pathYesPath to the file
target_paneYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. The mention of heredoc is a genuine behavioral trait, implying content is piped through a shell construct in the target pane, but it omits practical consequences such as delimiter/escaping collisions, shell expansion of content, and the prerequisite that the pane holds a ready shell. Output schema exists, so return values need not be covered.

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?

Two short sentences, front-loaded with the mechanism and followed by the usage condition; nothing is redundant. Its brevity is close to under-specification rather than clean economy.

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?

For a 3-required-parameter mutation tool with no annotations, the description is only partly sufficient: it covers the writing mechanism and environment but not pane targeting or shell-escaping pitfalls. The existing output schema relieves it of explaining return values.

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 coverage is only 67%, and the undocumented parameter is target_pane, the most ambiguous one (pane id format, session:window.pane vs %N). The description adds no parameter meaning at all, leaving a real gap the schema does not fill.

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

Purpose4/5

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

The description names a specific verb+resource ("Write file") and a concrete mechanism ("heredoc"), which separates it from command-sending siblings like tmux_send_command or tmux_send_keys. It does not explicitly contrast itself with those siblings, so it falls short of a 5.

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?

It states a clear usage context: remote environments (SSH, containers) where direct filesystem access is unavailable. There are no explicit exclusions or named alternatives, which keeps it out of 5 territory, but an agent knows the intended situation.

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