Skip to main content
Glama
priesdelly

WinTerminal MCP Server

by priesdelly

Write To Terminal

write_to_terminal
Destructive

Send a command or text to a Windows terminal session and press Enter to execute it, enabling interactive shell control with separate output retrieval.

Instructions

Writes a command or text into a session's shell input, exactly as if a person typed it, then presses Enter (by default).

Args:

  • session (string): which session to write to (default "default"; auto-created if it doesn't exist yet, using the default shell)

  • command (string): text to type

  • pressEnter (boolean): press Enter afterward (default true)

  • confirm (boolean): must be true to run a command matched by the dangerous-command safety filter (see config.json's dangerousPatterns)

Returns immediately after the keystrokes are sent - it does NOT wait for the command to finish. Use read_terminal_output afterward (optionally with waitForIdleMs) to see the result.

Errors:

  • "matches a pattern flagged as potentially destructive" -> resend with confirm: true if you really mean it

  • "readOnlyMode" -> this server instance has writes disabled in config.json

  • "No open session named ..." -> only for non-default session names; call open_terminal_session or list_terminal_sessions first

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesThe text/command to type into the terminal, e.g. "git status". Sent exactly as given, then Enter (unless pressEnter is false).
confirmNoSet true to bypass the dangerous-command safety check after you have deliberately reviewed the command.
sessionNoSession name to write to. Defaults to "default", which is auto-created on first use.default
pressEnterNoWhether to press Enter after typing. Set false to type partial input (e.g. answering an interactive prompt character by character).
Install Server

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, the description reveals key behaviors: it returns immediately without waiting for the command to finish, auto-creates the default session, enforces a dangerous-command safety filter, and can fail with a readOnlyMode error. This gives the agent a clear picture of consequences and side effects.

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?

The description is well-structured with Args, Returns, and Errors sections, and it front-loads the core behavior. It is somewhat verbose and partially duplicates the schema, but the additional operational details are relevant and not filler.

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?

For a tool with no output schema, the description covers the key contextual gaps: the return behavior, the follow-up read_terminal_output step, error conditions, and safety checks. Combined with the annotations and full schema coverage, an agent has enough information to use the tool correctly.

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?

The input schema already documents all four parameters with descriptions and defaults (100% coverage). The description's Args section mostly paraphrases the schema, adding only minor context like "default shell" and the dangerousPatterns config reference, so it does not substantially expand parameter understanding beyond the structured schema.

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 states a specific verb and resource: it "writes a command or text into a session's shell input, exactly as if a person typed it, then presses Enter." This clearly distinguishes it from sibling tools like read_terminal_output, open_terminal_session, and send_control_character.

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?

The description gives actionable workflow guidance: use read_terminal_output afterward to see results, and for non-default sessions call open_terminal_session or list_terminal_sessions first. It also explains when confirm=true is required. It does not explicitly contrast itself with send_control_character, but the context is otherwise clear.

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