Skip to main content
Glama

bash

Execute shell commands to create files, directories, and run terminal operations.

Instructions

This function will execute a bash command and return the output. This function is useful for executing commands including creating files, directories, and other shell commands.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYes
Behavior2/5

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

No annotations are provided, so the description carries full burden. It does not disclose behavioral traits such as potential destructiveness, working directory, environment variables, or timeouts. The agent has no indication of side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences are concise and front-loaded with the primary action. The second sentence adds context but is not redundant. However, it could be more structurally organized with bullet points for examples.

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

Completeness2/5

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

Given the complexity of bash commands, no output schema, and sibling tools covering file operations, the description lacks context on safe usage, working directory, environment, and when to prefer specialized sibling tools over bash.

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

Parameters2/5

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

The single 'command' parameter has schema coverage of 0% (no description in schema). The description only adds generic examples, not syntax details, constraints, or format expectations, providing minimal added meaning.

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 it executes bash commands and gives examples like creating files and directories, distinguishing it from siblings (e.g., python_code, write_file). However, it could explicitly mention it supports arbitrary shell commands beyond those examples.

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 usage for shell commands (creating files, directories, etc.) but provides no explicit guidance on when to choose this over siblings like write_file or create_folder, nor any exclusions (e.g., avoid interactive commands).

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/UjjwalKo/mcp-pypi-terminal'

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