Skip to main content
Glama
IMRRD
by IMRRD

winrm_exec

Execute PowerShell commands on remote Windows hosts via WinRM, no SSH required. Captures output in-process without console windows.

Instructions

Run a command on a remote Windows host via PowerShell Remoting (WinRM / Invoke-Command). Native to Windows Server — no SSH server or agent needed on the target, only WinRM enabled. Output captured in-process (no console window).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
useSslNoUse HTTPS/5986 WinRM.
commandYesPowerShell command/scriptblock body to run remotely.
passwordNoCredential password.
usernameNoCredential username (DOMAIN\\user or host\\user). Omit to use the host process identity.
timeoutMsNoHard timeout in ms (default 120000).
computerNameYesRemote Windows host name or IP.
authenticationNoWinRM auth mechanism.
Behavior3/5

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

With no annotations, the description must carry the transparency burden. It discloses one important behavior ('Output captured in-process (no console window)') and notes the WinRM requirement, but it does not elaborate on authentication needs, potential side effects, or exit code handling. This is a moderate level of disclosure.

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 two sentences that are tightly packed with essential info: action, method, target, key differentiator, and output behavior. Every clause earns its place, with no fluff or redundancy.

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?

Given the tool's complexity (7 parameters, no output schema), the description covers the core essentials: what it does, how it connects, and a key behavioral detail. It lacks some operational nuance like return value format or explicit rest of the lifecycle, but it is largely complete for an agent to invoke 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?

Schema coverage is 100% with well-described parameters, so the baseline is 3. The description does not add parameter-specific meaning beyond what the schema already provides, such as elaborating on the command field or authentication options. It remains at baseline.

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 clearly states the tool's function: 'Run a command on a remote Windows host via PowerShell Remoting' and distinguishes it from SSH-based alternatives by explicitly noting 'no SSH server or agent needed.' This makes the purpose immediately apparent and differentiates it from siblings like ssh_exec.

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?

It provides clear context on when to use the tool: when targeting Windows hosts with WinRM enabled. The explicit mention that SSH is not needed serves as an implicit alternative, but it does not explicitly state 'use this instead of ssh_exec' or address run_powershell, so it falls short of full exclusionary guidance.

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

Install Server

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/IMRRD/powershell-mcp'

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