Skip to main content
Glama
Node Terminal MCP

Node Terminal MCP

by henryzhz

terminal_send_key

Sends special keys and key combinations to a terminal session, enabling prompt confirmation, command-history navigation, and interrupt signals for interactive commands.

Instructions

Send special keys and key combinations to a terminal session. Use this for navigation, control sequences, and interactive commands that require specific key presses. Essential for terminal interactions like confirming prompts, navigating command history, or sending interrupt signals.

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": {
      "sessionId": "<sessionId>",
      "key": "<key>"
    },
    "name": "terminal_send_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesSpecial key to send. Supported keys: enter, tab, backspace, up, down, left, right, home, end, pageup, pagedown, delete, escape, ctrl+c, ctrl+d, ctrl+z, ctrl+l, ctrl+a, ctrl+e, ctrl+k, ctrl+u, ctrl+w, ctrl+r, ctrl+s, ctrl+q, space, f1-f12. Use "enter" to execute commands, "ctrl+c" to interrupt processes, "up/down" for command history.
sessionIdYesTerminal session ID to send the key to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.8

TDQS

B3.2/5.0
Behavior2/5

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

No annotations at all, so the description carries the full disclosure burden. It implies interaction with a live session but doesn't say whether the key is sent as keystrokes, whether the call blocks waiting for output, what happens if sessionId is invalid, or whether an interrupt cancels pending reads. Useful hints (escapes, interrupts) but thin behavioral detail.

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?

Three sentences, front-loaded with purpose and then rationale for use. Little waste, though the last sentence is somewhat redundant with the second.

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 2-parameter, no-output-schema tool, the description plus schema covers invocation. But with no annotations and mutation-like side effects on a live session (interrupts), key behavioral facts (blocking behavior, session validity) are absent.

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?

Schema coverage is 100% and the key parameter already enumerates supported keys with usage hints. The description adds no parameter meaning beyond the schema; baseline 3.

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?

Clear verb+resource: sends special keys/combinations to a terminal session. Distinguishes from terminal_write by focusing on special keys rather than text, though it doesn't explicitly name the sibling.

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?

Gives examples of use (confirming prompts, history navigation, interrupt signals), which implies when to use. However it doesn't explicitly contrast with terminal_write ('use terminal_write for regular text input'), leaving the boundary to be inferred.

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