Skip to main content
Glama

bash

Execute shell commands in the current working directory and return stdout/stderr. Output truncates to last 2000 lines or 50KB, with full results saved to a temp file.

Instructions

Execute a bash command in the current working directory. Returns stdout and stderr. Output is truncated to last 2000 lines or 50KB (whichever is hit first). If truncated, full output is saved to a temp file. Optionally provide a timeout in seconds.

Input Schema

NameRequiredDescriptionDefault
commandYesShell command to execute
timeoutNoTimeout in seconds (optional, no default timeout)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose important output behavior: stdout/stderr return, truncation limits (2000 lines or 50KB), temp-file fallback, and optional timeout. However, it omits safety-critical traits such as destructive potential, permission requirements, and that commands run with the user's privileges.

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?

Four sentences, front-loaded with the core action and followed by output handling details. Every sentence contributes useful information; no filler.

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?

No output schema exists, so the description appropriately explains return values and truncation behavior. For a complex arbitrary-command tool with no annotations, it is mostly complete but lacks safety/permission context.

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 schema already documents both parameters, including that timeout is optional with no default. The description adds no syntax or format details beyond the schema, so baseline 3 applies.

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?

States a specific verb ('Execute') and resource ('bash command') and scope ('current working directory'). It is clear what the tool does, but it does not explicitly distinguish itself from sibling tools like read, grep, or write, so an agent must infer when general shell execution is preferable.

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?

Provides no when-to-use or when-not guidance. It does not say to prefer read/ls/grep/find for file inspection or to reserve bash for arbitrary commands, leaving alternative selection entirely to the agent's inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools