Skip to main content
Glama
smk-h

embedded-mcp-toolkit

by smk-h

power_shell_write

Send a PowerShell command to a session, using buffer clearing to collect output reliably and avoid concurrent access issues.

Instructions

Send a command to a PowerShell shell session. Do NOT call this concurrently with power_shell_exec/power_shell_read on the same session_id — concurrent access to the same PowerShell process corrupts the output buffer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clearNoBuffer clear flag: 1 (default) = clear buffer before collecting, 0 = append to buffer
commandYesThe PowerShell command to send
session_idYesThe session ID returned by power_shell_open
Install Server

TDQS

A4/5.0
Behavior4/5

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

Given no annotations, the description carries the burden of behavioral disclosure. It reveals a critical behavioral trait: concurrent access corrupts the output buffer, which is a non-obvious constraint. However, it does not mention side effects of the command itself (e.g., whether it modifies the session state) or expected output behavior beyond buffer handling. The description adds the 'clear' flag context, which briefly explains the parameter but lacks detail on output format.

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 two sentences, front-loaded with the primary action, and includes a critical caution efficiently. No wasted words.

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 write tool with good schema coverage and a clear description, the description covers the crucial concurrency warning, but it lacks information on output format or post-execution steps. The command syntax is simple, so a 3 reflects that it's a concise definition but not a complete one.

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

Parameters4/5

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

Schema coverage is 100% with descriptions for all three parameters. The description adds context on the 'clear' parameter (buffer clearing behavior) and relates session_id to power_shell_open, which clarifies usage. This additional context exceeds the schema baseline, so a 4 is 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 clearly states the verb 'Send' and resource 'command to a PowerShell shell session', which identifies the tool's purpose. It distinguishes it from siblings like power_shell_read and power_shell_exec by focusing on writing, though it doesn't explicitly contrast with them.

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 an explicit 'Do NOT call concurrently' warning with sibling tools, which is strong usage guidance. It doesn't specify when to use this tool over alternatives (e.g., vs exec), but the concurrency constraint is a clear usage rule.

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/smk-h/embedded-mcp-toolkit'

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