Skip to main content
Glama
NimbleBrainInc

Bash MCP Server

bash_exec

Execute a bash command and return its stdout, stderr, exit code, and execution duration.

Instructions

Execute a bash command and return stdout, stderr, exit code, and duration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesThe bash command to execute
cwdNoWorking directory (defaults to server's cwd)
timeoutNoTimeout in seconds (default 30, max 600)
envNoAdditional environment variables to set

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
stdoutYesCommand standard output
stderrYesCommand standard error
exit_codeYesExit code (124 = timeout)
duration_msYesExecution time in milliseconds
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the return values (stdout, stderr, exit code, duration), which is helpful. However, it omits behavioral details like side effects, error handling, permissions, or security implications, which are essential for a bash 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 a single, well-structured sentence that front-loads the action and returns concise, relevant information. Every word serves a purpose with no redundancy.

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?

Given that the output schema covers return values and the schema covers parameters, the description is minimally adequate. However, it lacks critical context about safety, side effects, and usage boundaries, which are important for a potentially dangerous 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?

Schema description coverage is 100%, so the baseline is 3. The description does not add any additional meaning about the parameters beyond what the schema already provides; it merely restates the action.

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 verb 'execute' and the resource 'bash command', and lists the return values (stdout, stderr, exit code, duration). It is specific and leaves no ambiguity about the tool's purpose, even without sibling tools.

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?

The description provides no guidance on when to use this tool versus alternatives, nor does it specify any prerequisites or exclusions. For a command execution tool, usage context is critical but absent.

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/NimbleBrainInc/mcp-bash'

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