Skip to main content
Glama

run_shell

Execute PowerShell commands on a Windows machine, with options for working directory, timeout, and asynchronous mode for long-running builds or scripts.

Instructions

Execute a PowerShell command on this Windows machine. Set asyncMode=true for long-running builds/scripts.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory/root
commandYesPowerShell command to execute
asyncModeNo
timeoutSecNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for an arbitrary-code-execution tool. It discloses only the async option; it says nothing about what is returned (stdout, exit code, stderr), whether the command runs sandboxed or with what privileges, what happens on timeout, or that execution is potentially destructive.

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?

Two short sentences with the core action front-loaded and the async hint immediately after. Nothing is redundant or padded.

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

Completeness2/5

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

For a four-parameter execution tool with no annotations and no output schema, the description is thin: it omits return values, timeout behavior, and the working-directory default. An agent could invoke it, but cannot predict results or failure modes from the definition alone.

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 50%: 'command' and 'cwd' are documented in the schema, while 'asyncMode' and 'timeoutSec' are not. The description compensates for asyncMode by explaining it is for long-running builds/scripts, but leaves timeoutSec (default 45, max 120) and the cwd default of /root unexplained.

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 and resource: 'Execute a PowerShell command on this Windows machine.' The Windows/PowerShell scoping clearly separates it from file-editing or desktop-automation siblings, but it never names an alternative such as run_checks or desktop_run_steps, so differentiation is left implicit.

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 only guidance is 'Set asyncMode=true for long-running builds/scripts,' which is a parameter hint rather than a when-to-use rule. There is no statement of when to prefer this over run_checks or the desktop_* tools, and no exclusions or prerequisites.

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