Skip to main content
Glama
Node Terminal MCP

Node Terminal MCP

by henryzhz

terminal_write

Sends text, commands, or character input to a terminal session so AI agents can interact with a live shell; read the session afterward to view command output.

Instructions

Send text input to a terminal session. This is used for typing commands, text, or any character input. The terminal will process this input as if typed by a user. Always follow up with read_from_terminal to see the results and any output generated by the command.

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>",
      "input": "<input>"
    },
    "name": "terminal_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesText input to send to the terminal. Can be commands, text, or any character sequence. Examples: "ls -la", "cd /home", "npm install", "echo hello"
sessionIdYesTerminal session ID to send input to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.8

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It usefully discloses that the terminal processes input "as if typed by a user," implying shell interpretation and real side effects, but omits key mechanics: whether a trailing newline/Enter is required to execute, whether the call blocks or times out, and whether the session must already exist.

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 short sentences, front-loaded with the core action and ending with the required follow-up step. The middle sentence ("used for typing commands, text, or any character input") largely restates the first and the schema's input description.

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 simple two-parameter tool with full schema coverage and no output schema, the description covers the action and the read-back loop. It is incomplete on session lifecycle (whether terminal_create is a prerequisite) and on execution semantics such as newline handling, and it names "read_from_terminal" while the sibling is terminal_read, which risks an agent looking for a nonexistent tool.

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 both parameters are documented with examples, so the schema does the heavy lifting. The description adds no meaning beyond it, which is the baseline case.

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?

States a specific verb and resource ("Send text input to a terminal session") and clarifies it is character input rather than structured data. It does not distinguish itself from the sibling terminal_send_key, so an agent cannot tell from the description which of the two handles special/named keys versus raw text.

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?

Gives a concrete workflow rule: "Always follow up with read_from_terminal to see the results." That is clear when-to-use context, but there are no exclusions and no guidance on when terminal_send_key would be the better choice.

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