Skip to main content
Glama
rayss868

PC Controller MCP Server

by rayss868

run_command

Run shell commands on a Windows PC and get the output. Supports PowerShell, Git Bash, and WSL for any CLI task, from npm install to git status. Returns STDOUT/STDERR with configurable timeout.

Instructions

Execute a shell command on this Windows PC and return its output. Use this tool to run any CLI command: package installation (npm, pip, cargo), code compilation, file management via CLI, registry queries, network diagnostics (ping, tracert, ipconfig), git operations, build scripts, or anything that can run in a terminal. Default shell is PowerShell with a timeout of 30 seconds. Returns both STDOUT and STDERR. The 'shell' parameter switches to Git Bash or WSL for Unix-style commands (ls, grep, bash scripts). WARNING: Dangerous commands will still execute — make sure the command is correct before running.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory where the command runs. Use absolute path. Default: user home directory (C:\Users\<username>)
shellNoShell to run the command in. "powershell" (default) is native Windows. "gitbash" uses Git Bash (C:\Program Files\Git\bin\bash.exe) for Unix utilities. "wsl" uses WSL (System32\bash.exe → default distro, e.g. Ubuntu) for real Linux commands. Use PowerShell unless the command is Unix-specific.
commandYesThe shell command to execute. Examples: "dir C:\Users", "Get-Process", "npm install", "git status", "ipconfig /all", "ls -la"
timeoutNoExecution timeout in milliseconds. Default: 30000 (30 seconds). Increase for long-running commands like npm install or builds.
Install Server

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses default shell (PowerShell), default timeout (30 seconds), return of both STDOUT and STDERR, and a clear warning that dangerous commands execute. This goes beyond basic expectations and informs the agent about important constraints. It does not cover details like exit codes or failure behavior, but the description's warning is a notable transparency benefit.

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 concise and front-loaded with the main action. It uses a short list of use cases and a warning, all within four sentences. Every sentence contributes valuable information without redundancy. The structure is clear, with the warning placed at the end for emphasis.

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?

For a tool with 4 parameters, no annotations, and no output schema, the description covers the core operational details: shells, timeout, stdout/stderr, and safety warning. The main gap is not referencing the sibling run_command_long, which is directly relevant for extended timeouts. Despite this, the description is sufficiently complete for an agent to select and use the tool correctly for the majority of cases.

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 provides descriptions for all parameters (100% coverage), including examples and defaults. The description adds minimal extra meaning beyond the schema, mainly emphasizing that shell can switch to Git Bash/WSL for Unix commands and that the timeout is configurable. This is helpful but does not significantly elevate above the schema baseline, so a 3 is appropriate.

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 executes a shell command on the local Windows PC and returns output. It lists specific use cases (npm, pip, git, network diagnostics) and explicitly differentiates from other sibling tools like file_read or sys_info. The purpose is unambiguous and uses a specific verb+resource construction.

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 provides strong context for when to use the tool: 'Use this tool to run any CLI command' with examples. It also gives clear shell selection guidance ('Use PowerShell unless the command is Unix-specific' is in the schema, but description reinforces it). However, it does not explicitly mention alternative tools like run_command_long or state when to prefer them, so exclusions and alternatives are partially covered.

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/rayss868/pc-controller-mcp-server'

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