Skip to main content
Glama
MCP PowerShell Server

MCP PowerShell Server

by saimanish1

run_shell_command

Executes PowerShell commands on Windows and returns stdout, stderr, exit code, signal, and timeout or truncation flags, with configurable working directory, timeout, and output limits.

Instructions

Execute commands using PowerShell on Windows (PowerShell-only). Returns stdout, stderr, exit code, signal, and flags for timeout/truncation.

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": {
      "command": "<command>"
    },
    "name": "run_shell_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory
commandYesPowerShell command/script to execute
timeoutMsNoTimeout in ms (max 10 minutes)
maxOutputBytesNoMax output bytes per stream (max 2MB)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It usefully discloses return channels and timeout/truncation flags, but it does not state that arbitrary command execution may modify files or system state, nor does it mention permission or security implications.

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 definition is two efficient sentences and front-loads the core action and platform. The parenthetical '(PowerShell-only)' is slightly redundant with 'using PowerShell on Windows', but there is little wasted wording.

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?

For a powerful shell-execution tool with no annotations and no output schema, the description covers platform, output channels, and timeout/truncation behavior. It remains incomplete on side effects, permissions, and safety context, which are important for this kind of tool.

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 description coverage is 100%, so the input schema already documents all four parameters. The description adds no syntax, constraints, or meaning beyond the schema, making the baseline score appropriate.

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?

The description states a specific verb and resource: execute commands using PowerShell on Windows. The PowerShell-only constraint is explicit, so an agent can tell what the tool does without opening the schema. There are no sibling tools to distinguish against, which keeps it short of a 5.

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?

The platform constraint is clear, but the description gives no explicit when-to-use guidance, alternatives, or conditions where the tool should not be used. Usage is only implied by the fact that it executes PowerShell commands.

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

Deploy Server

Other Tools