Skip to main content
Glama
Jason26214

pwsh-exec

by Jason26214

run_command

Execute PowerShell commands in a new process, returning stdout, stderr, and exit code. Ideal for short, stateless tasks up to 5 minutes.

Instructions

Execute a command in a new PowerShell (pwsh 7) process. Stateless — no state persists between calls.

NOT for long-running tasks. Hard cap is 300 seconds (5 minutes); there is no background mode. Do NOT use for: installers (Ollama, VS, .NET SDK, etc.), large builds, package managers that may exceed 5 minutes (npm install on cold cache, pip install torch, etc.), dev servers, or anything interactive.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYes
timeoutYesTimeout in SECONDS (not milliseconds). Integer between 1 and 300.
working_directoryNo%TEMP%\\pwsh-exec

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses key behaviors: new process, statelessness, hard timeout of 300 seconds, no background mode. The description also forbids interactive processes and certain types of commands. It does not mention error handling or output format, but the output schema likely covers returns. Overall, it is fairly transparent.

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 extremely concise: a single-sentence purpose followed by bullet-point limitations. Every sentence adds value, with no redundancy. The critical information is front-loaded, and the formatting (newlines, bullet dashes) aids readability.

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 command execution tool with 3 parameters and an output schema, the description covers statelessness, timeout, and forbidden uses. However, it lacks details on output format (e.g., stdout/stderr), error handling, and security considerations. Given the complexity, some additional context would be beneficial, but the core functionality is adequately described.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is low (33%), meaning only the 'timeout' parameter has a description in the schema. The tool description adds implicit context about timeout (the 300-second cap) but does not explain the 'command' parameter format or the 'working_directory' parameter beyond the schema's default. This is insufficient compensation for the coverage gap.

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 command in a new PowerShell (pwsh 7) process and is stateless. It uses a specific verb ('Execute') and resource ('command in a new PowerShell process'), making the purpose unambiguous. No sibling tools exist, so differentiation is not needed.

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 explicit negative usage guidelines, listing scenarios where the tool should not be used (long-running tasks, installers, large builds, etc.). However, it does not suggest alternative tools for those cases (no siblings listed), so while the guidance is clear, it lacks positive direction. This earns a 4.

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/Jason26214/pwsh-exec-mcp'

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