Skip to main content
Glama
Node Terminal MCP

Node Terminal MCP

by henryzhz

terminal_create

Create a persistent terminal session to maintain state, environment variables, working directory, and command history across interactive commands and long-running processes.

Instructions

Create a new persistent terminal session that will continue running until explicitly closed. Terminal sessions maintain their state, environment variables, working directory, and command history. Use this to establish a long-running interactive environment for executing commands, running processes, or maintaining context across multiple operations.

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

Input Schema

NameRequiredDescriptionDefault
colsNoNumber of columns for terminal width (default: 80). Adjust based on expected output format.
rowsNoNumber of rows for terminal height (default: 24). Adjust based on expected output length.
shellNoShell to use (default: process.env.SHELL or /bin/bash). Common options: /bin/bash, /bin/zsh, /bin/sh, cmd.exe (Windows), powershell.exe (Windows)/bin/bash
sessionIdYesUnique identifier for the terminal session. Use descriptive names like "main", "build", "test", or "deploy" to organize different terminal contexts.

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 carries the full disclosure burden, and it does state the key traits: persistence, retained environment/working directory/history, and termination only on explicit close. It omits failure and resource behavior that matter for a creation tool — duplicate sessionId handling, session limits, and the expectation of cleanup via terminal_close.

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 the core action and lifecycle, with no filler. The persistence claim is stated twice in slightly different words ("persistent" / "maintain their state"), a minor redundancy.

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 creation tool with no annotations and no output schema, the description covers purpose, state retention, and lifecycle adequately. It leaves gaps on what happens on a duplicate sessionId, whether a handle or confirmation is returned, and the cleanup obligation, which an agent needs to use this safely.

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%, so every parameter including cols, rows, shell, and sessionId is already documented with defaults and guidance. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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?

"Create a new persistent terminal session" gives a specific verb and resource, and the lifecycle clause ("continue running until explicitly closed") makes the create/close split obvious. It stops short of a 5 because no sibling is named, so routing against terminal_write or terminal_list is inferred from the verb alone.

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?

"Use this to establish a long-running interactive environment for executing commands, running processes, or maintaining context across multiple operations" gives clear positive context for selection. There are no exclusions or preconditions (e.g., what to do if the sessionId already exists, or that commands should then go through terminal_write).

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