Skip to main content
Glama

terminal_send

Sends literal keystrokes or a single special key, such as Enter or Ctrl-C, to a tmux session for interactive HPC terminal control; does not support heredocs or multi-line scripts.

Instructions

Send keys to tmux session. No heredoc or multi-line scripts.

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": {
      "keys": "<keys>"
    },
    "name": "terminal_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
keysYesText (typed literally) or one special key: Enter, Tab, Escape, C-c / Ctrl-C, Up, ... No heredoc (<<), no multi-line code.
sessionNohpc

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses one boundary (no heredoc/multi-line) but says nothing about whether this requires a running tmux session, whether it blocks or returns immediately, whether a newline must be included to execute, or what happens on an unknown session name.

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, front-loaded sentences with no filler; the core action comes first and the constraint second. It is efficient, though the constraint sentence duplicates what the keys schema already says.

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

Completeness2/5

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

A two-parameter interactive-input tool with no annotations and no output schema needs the description to explain prerequisites (session must be started via terminal_start) and result behavior. Neither is covered, leaving an agent unable to predict failure modes or whether keystrokes are echoed/acknowledged.

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 50%: the keys parameter is documented in the schema (including the special-key list and heredoc caveat), and the description only repeats that constraint. The session parameter, despite having a default of "hpc", is never described in either place, so no compensating meaning is added.

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 states a concrete verb and resource ("Send keys to tmux session"), which tells an agent this is literal keystroke injection rather than command execution. It does not explicitly differentiate itself from sibling terminal_exec or explain the relationship to terminal_start, so the distinction is inferable but not stated.

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

Usage Guidelines3/5

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

The "No heredoc or multi-line scripts" line is a real usage constraint that steers the agent away from an unsupported input style. However, there is no explicit when-to-use versus terminal_exec/terminal_read, no requirement that the session already exist, and no guidance on which tool to pick for scripted commands.

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