Skip to main content
Glama

Bash

bash
Destructive

Run a single allowlisted verification command such as tests, lint, typecheck, or build in the workspace to confirm code quality and correctness.

Instructions

Run one allowlisted verification command in the workspace, such as tests, build, lint, typecheck, or a project script. Do not use for git status/diff or file inspection; use show_changes, tree, search, and read instead. Do not chain commands with &&, pipes, redirects, or shell file readers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory relative to workspace root. Default: .
commandYesCommand to run.
session_idNoOptional bash session id. If configured on the server, a provided value must match it.
timeout_msNoTimeout in milliseconds. Default: 30000.
workspace_idNoWorkspace id from open_workspace. Omit to use default workspace.
Behavior4/5

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

Annotations already carry the safety profile (destructiveHint=true, readOnlyHint=false, openWorldHint=true), so the bar is lower. The description adds genuinely useful behavioral constraints beyond the annotations: only allowlisted verification commands may run, only a single command (no chaining), and no shell redirection/pipe constructs. This meaningfully shapes agent behavior without contradicting the annotations.

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?

Three sentences with zero waste: purpose is front-loaded, exclusions and alternatives follow, then invocation constraints. Every sentence earns its place and the structure makes it skimmable for an agent.

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?

Given the safety-sensitive nature of a command runner, the combination of annotations (destructive/openWorld), full schema coverage, and the description covers what to run, when to run it, and how to constrain invocations. The main gap is the absence of an output schema and no description of the return format (stdout/stderr/exit code), but for a bash tool this is fairly standard and a minor omission.

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 all five parameters (command, cwd, session_id, timeout_ms, workspace_id) are already documented in the schema, warranting the baseline 3. The description adds marginal value by constraining what values the command parameter may take (single, allowlisted, un-chained), but provides no format or syntax detail beyond that.

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?

States a specific verb and resource ('Run one allowlisted verification command') with concrete examples (tests, build, lint, typecheck, project script). It also distinguishes itself from siblings by explicitly naming what it is not for (git status/diff, file inspection) and pointing to the correct alternatives, so an agent can route correctly without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit when-to-use guidance ('verification command') and exclusions ('Do not use for git status/diff or file inspection') with named sibling alternatives (show_changes, tree, search, read). Also gives hard constraints on invocation style (no &&, pipes, redirects, or shell file readers). Nothing is left to inference.

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/Nippori709/AgentDock'

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