Skip to main content
Glama
k8ika0s

mcp-tmux

by k8ika0s

Capture recent tmux history

tmux_context_history

Capture recent scrollback from tmux panes or sessions to infer terminal context and extract recent commands for grounded assistance.

Instructions

Capture recent scrollback from a pane or session to infer context; also extracts recent commands heuristically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostNoSSH host alias (optional). Uses default host if set.
linesNoHow many lines to capture per pane.
targetNoPane target (pane id or session:window.pane). If omitted, uses active panes in session.
sessionNoSession (optional; uses default).
allPanesNoIf true, capture all panes in the session.
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions heuristic command extraction but does not explicitly state that it is a safe read-only operation, what dependencies exist (e.g., tmux session required), or any potential side effects. This leaves significant gaps.

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 a single sentence that front-loads the core action and purpose, with no wasted words. Every phrase adds value, making it highly concise and well-structured.

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?

The tool has 5 optional parameters and no output schema, so the description should cover more ground. It explains the core function but omits details about default target selection, return format, or the nature of the heuristic extraction, leaving the agent with partial context.

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?

All 5 parameters have thorough descriptions in the schema (100% coverage), so the baseline is 3. The tool description itself adds no parameter-level meaning beyond what the schema already provides.

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 action ('Capture recent scrollback from a pane or session') and its purpose ('infer context'), while the added 'also extracts recent commands heuristically' distinguishes it from similar capture tools like tmux_capture_pane.

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 provides a clear usage context ('to infer context'), indicating when the tool would be appropriate. However, it does not explicitly name alternatives or exclusions, so it stops short of a 5.

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

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