Skip to main content
Glama
hugo94z

mcp-interactive-terminal

by hugo94z

terminal_start

Launch an interactive Windows shell (PowerShell, pwsh, or CMD) and return its session ID plus initial screen, enabling AI agents to send input and read rendered output.

Instructions

Start an interactive terminal session and return its id plus the initial screen.

Args: shell: "powershell" (Windows PowerShell 5.1), "pwsh" (PowerShell 7), "cmd", or an absolute path to any executable. cwd: Working directory. Defaults to the server's current directory. env: Extra environment variables merged into the inherited environment. cols: Terminal width in columns (default 120). rows: Terminal height in rows (default 30). name: Session id. Auto-generated (t1, t2, ...) when omitted. replace: Kill an existing session with the same name and start a fresh one. args: Extra arguments passed to the shell or executable.

Returns: session_id, shell, cwd, pid, size, ready reason and the rendered screen.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNo
envNo
argsNo
colsNo
nameNo
rowsNo
shellNopowershell
replaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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 burden. It does disclose the destructive side of replace ('Kill an existing session with the same name') and enumerates the return fields including a 'ready reason', which is genuinely useful. It says nothing about session lifetime/persistence, cleanup responsibilities, or failure behavior, which are significant for a long-lived stateful resource.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in one sentence, then cleanly separated into Args and Returns blocks. Nothing is padded and the parameter list is justified because the schema itself provides no descriptions.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, stateful, no-annotation tool with no output schema, the description covers parameters and return shape well. It stops short of telling the agent how this session relates to the other session tools (send/read/stop) or how long the session lives, which is the main remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does: all eight parameters are explained with concrete values ('powershell', 'pwsh', 'cmd', or an absolute path), defaults (120 cols, 30 rows, server cwd), and semantics (env is merged into the inherited environment, name auto-generates as t1/t2, args are extra shell arguments).

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+resource ('Start an interactive terminal session') and the return payload, so the agent knows exactly what the tool does. It does not, however, contrast itself with the closest sibling, terminal_exec, which an agent could reasonably confuse it with for command execution.

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?

Usage is implied rather than stated: 'interactive terminal session' versus terminal_exec/terminal_send, and the replace flag's kill-and-restart behavior hint at when to use it. There is no explicit when-to-use/when-not-to-use guidance or named alternative anywhere in the text.

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