Skip to main content
Glama
priesdelly

WinTerminal MCP Server

by priesdelly

List Terminal Sessions

list_terminal_sessions
Read-onlyIdempotent

List all known Windows terminal sessions along with shell, directory, and alive status to confirm which sessions are available before sending commands or reading output.

Instructions

Lists every session this server currently knows about, each backed by a real, persistent shell process attached to its own pseudo console.

Returns for each session: name, shell (pwsh/powershell/cmd), starting directory, creation time, and whether the process is still alive (false if it exited or was killed since it was opened).

Use this before write_to_terminal/read_terminal_output when you're not sure which named sessions already exist, or to check whether a session that exited needs to be reopened.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.7/5.0
Behavior4/5

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

The annotations already cover safety (read-only, idempotent, non-destructive), so the description adds valuable extra behavior: it enumerates the returned fields, lists shell types, and clarifies that a process is marked alive or false if exited or killed. No contradiction with annotations exists, and no hidden mutation is implied.

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 description is three front-loaded sentences: what the tool does, what it returns, and when to use it. Every sentence adds decision-relevant information with no filler or repetition.

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

Completeness5/5

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

This is a simple zero-parameter list tool, and the description fully accounts for the missing output schema by enumerating the return fields. Combined with the annotations and the explicit usage guidance, nothing necessary for correct invocation is missing.

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

Parameters4/5

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

The tool has zero parameters and the schema already represents this with an empty properties object. There is no parameter meaning for the description to add, so the baseline score of 4 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific action ('Lists') and a clearly bounded resource ('every session this server currently knows about'). It also explains the real backing shell process and distinguishes this inspection tool from the mutation/communication siblings like write_to_terminal and read_terminal_output.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says when to use the tool: before write_to_terminal/read_terminal_output when session names are uncertain, and to check whether an exited session must be reopened. This gives the agent a concrete decision rule and names the related tools it supports.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/priesdelly/Win-Terminal-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server