Skip to main content
Glama
Node Terminal MCP

Node Terminal MCP

by henryzhz

terminal_resize

Adjust a terminal session's columns and rows to prevent truncated output and accommodate content or commands that depend on terminal dimensions.

Instructions

Resize a terminal session to adjust its dimensions. Useful when output is truncated or when you need to accommodate different content formats. Some commands and applications behave differently based on terminal size.

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>",
      "cols": "<cols>",
      "rows": "<rows>"
    },
    "name": "terminal_resize"
  }
}

Input Schema

NameRequiredDescriptionDefault
colsYesNew number of columns (width). Common values: 80, 120, 160. Use larger values for wide output or tables.
rowsYesNew number of rows (height). Common values: 24, 40, 60. Use larger values for long output or logs.
sessionIdYesTerminal session ID to resize

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 are supplied, so the description carries the full burden. It usefully discloses that 'some commands and applications behave differently based on terminal size', which is real behavioral context beyond the schema, but it omits whether the session must be active, what happens to in-flight output or running processes, and how invalid or extreme values are handled.

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 action and followed by motivation. Minor redundancy in 'adjust its dimensions' after 'resize', but there is no filler of consequence.

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?

The tool is simple and the schema is fully described, so most of what an agent needs is present. With no annotations and no output schema, however, the description leaves behavioral edge cases (session state requirements, effect on running processes, error responses) unaddressed.

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 schema already documents all three parameters, including common values (80/120/160 columns, 24/40/60 rows). The description adds no meaning beyond that, so the baseline of 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: 'Resize a terminal session to adjust its dimensions.' This is unambiguous and easily distinguished from siblings such as terminal_write, terminal_read or terminal_close, though the description does not explicitly contrast itself with them.

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 concrete situations for use — 'when output is truncated' or 'to accommodate different content formats' — which is clear context for choosing this tool. It stops short of exclusions or say naming alternatives (e.g., re-reading vs resizing), so it is good but not complete routing guidance.

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