Skip to main content
Glama

execute_powershell

Execute PowerShell scripts on target agents to automate penetration testing and Active Directory reconnaissance, encoding scripts as UTF-16LE commands for reliable execution.

Instructions

Execute a PowerShell script on the target agent. The script is sent raw and encoded to UTF-16LE for -EncodedCommand.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scriptYes
agent_idYes
Behavior3/5

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

The description adds a useful technical detail: the script is encoded to UTF-16LE and sent via -EncodedCommand, which reveals how the execution is performed. However, with no annotations, it fails to disclose output behavior, side effects, permissions, or failure modes, which are critical for an execution tool.

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 exceptionally concise, consisting of two clear sentences with no redundant information. Every word earns its place, and the structure is front-loaded with the core action.

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 an execution tool, the description is inadequate. It omits crucial information such as output/return behavior, execution duration, privilege requirements, and error handling. The encoding detail is helpful but does not compensate for the lack of annotations and output schema.

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?

The schema provides zero description coverage for parameters, but the description only explains script encoding and does not clarify the semantics of agent_id or the script content itself. It adds minimal value beyond parameter names, so the agent must infer meaning from names alone.

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 clearly states it executes a PowerShell script on a target agent, which is a specific verb+resource and distinguishes it from sibling tools like run_shell_command. However, it does not explicitly highlight when to prefer this over other execution tools, so it doesn't fully meet the standard for sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided regarding when to use this tool versus alternatives such as run_shell_command. It does not mention prerequisites, scenarios, or exclusions, leaving the agent without direction for tool selection.

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/johanrobbenites/MCP-IA-for-Offensive-Security'

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