Skip to main content
Glama
Prabhas125

universal-mcp-fs

by Prabhas125

Run Shell Command

run_command
Destructive

Execute a shell command with interactive user approval. Captures stdout, stderr, and exit code with configurable timeout.

Instructions

Execute a shell command and return its stdout/stderr. ALWAYS requires interactive user approval before running.

Args:

  • command (string): The command to execute (interpreted by the platform shell — cmd.exe on Windows, bash on Linux).

  • cwd (string, optional): Working directory. Defaults to the first allowed directory.

  • timeout (number, optional): Timeout in milliseconds. Default: 30000, max 300000.

Returns: stdout, stderr, and exit code.

Error Handling:

  • Returns an error if the user declines the approval prompt.

  • Returns an error if the command exceeds the timeout (process is killed).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory for the command
commandYesShell command to execute
timeoutNoTimeout in milliseconds
Behavior4/5

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

Beyond annotations (destructiveHint: true), the description adds that the command is killed on timeout, returns error if user declines, and specifies shell interpretation (cmd.exe vs bash). This enriches the behavioral context.

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 well-organized with clear sections (Args, Returns, Error Handling), concise yet comprehensive, with no redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex tool without output schema, it covers return values, error scenarios, approval requirement, timeout, and shell differences. All critical aspects are addressed.

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?

With 100% schema coverage, the description still adds value by stating defaults for cwd and timeout, and the max timeout. These details are not in the schema, aiding the agent in proper usage.

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 'Execute a shell command and return its stdout/stderr,' using a specific verb and resource. It also highlights the unique requirement for interactive approval, distinguishing it from sibling tools like run_command_background.

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?

It explicitly states 'ALWAYS requires interactive user approval,' providing a strong usage guideline. It also covers error handling for user decline and timeout, but does not explicitly mention when not to use or list alternatives.

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/Prabhas125/universal-mcp-fs'

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