Skip to main content
Glama
Node Terminal MCP

Node Terminal MCP

by henryzhz

terminal_read

Reads the current output buffer from a terminal session so you can inspect command results, errors, prompts, and state changes after sending input.

Instructions

Read the current output buffer from a terminal session. CRITICAL: Always call this after sending input to see command results, error messages, prompts, or any terminal output. The terminal session maintains its state, so you should read frequently to stay updated on the current state, especially after commands that might change the working directory, environment, or running processes.

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_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesTerminal session ID to read output from

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?

No annotations exist, so the description carries the full burden. It discloses useful state context (the session persists across calls) and that this is polling for output, but it never says whether the buffer is cumulative or a delta since the last read, whether the call blocks waiting for output, or how large output is truncated. Those are the traits an agent most needs to interpret a read.

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?

Front-loaded with the core action, and the follow-up sentences give actionable timing advice. The second sentence drifts into repetition ('read frequently to stay updated on the current state') that could be tightened, but nothing is wasted overall.

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?

There is no output schema, so the description must explain the return value, and it only says 'output buffer' without stating format, encoding, truncation, or buffering semantics. Adequate to prompt a call but leaves real ambiguity about what comes back on repeated reads.

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?

Only one parameter, sessionId, and the schema already documents it at 100% coverage. The description's mention of 'a terminal session' reinforces the meaning but adds no syntax or format detail beyond the schema, 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?

States a specific verb and resource: 'Read the current output buffer from a terminal session.' That is clearly distinct from the write/send-key/close siblings even though none are named explicitly. Missing only an explicit contrast with siblings such as terminal_list.

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 clear when-to-use guidance: 'Always call this after sending input to see command results, error messages, prompts.' Also advises reading frequently and after state-changing commands. No when-not guidance or named alternative is offered, which keeps it below a 5.

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