Skip to main content
Glama
codingmachineedge

lowlevel-computer-use-mcp

run_command_as_admin

Destructive

Execute shell commands with full Administrator privileges, triggering a Windows UAC prompt for approval when needed, and return the captured output, exit code, and elevation status.

Instructions

Run a shell command with Administrator privileges.

If the server is not already elevated this triggers a Windows UAC prompt that the user must approve. Output is captured and returned. This runs commands with full administrative rights - use with care.

Args: params (RunAsAdminInput): the command line and a timeout.

Returns: str: JSON {"ok": bool, "returncode": int, "output": "...", "elevated_prompt": bool}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description discloses key behaviors: UAC prompt on elevation, output format with JSON fields, and a warning about full administrative rights. Annotations already indicate destructiveHint=true, and the description adds context beyond that, though it could detail the confirm_focus_disruption parameter's role.

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 highly concise: two sentences of purpose, then a structured Args/Returns section. Every sentence adds value with no fluff. Front-loaded with the core action.

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?

The description covers the UAC trigger, output format, and a cautionary note. It includes a return type with JSON fields, which is helpful. However, it omits details about timeout behavior or error handling, leaving some gaps for a complex elevated command tool.

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 provides full descriptions for all three parameters (command, timeout, confirm_focus_disruption), but the tool description only mentions 'command line and a timeout' in the Args section. While schema coverage is high, the description adds minimal extra meaning beyond a quick summary.

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 runs a shell command with Administrator privileges, distinguishing it from the sibling tool 'run_command' by specifying elevation. It includes details about UAC prompts and output capture, making the purpose unambiguous.

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 description implies when to use (when admin rights needed) but does not explicitly contrast with the non-admin sibling 'run_command'. It mentions UAC prompt behavior but no direct 'use this instead of run_command' guidance.

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/codingmachineedge/lowlevel-computer-use-mcp'

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