Skip to main content
Glama

execute_shell_command

Execute ad-hoc shell commands in the workspace to verify edits compile or tests pass, without leaving your editing environment.

Instructions

Run an ad-hoc shell command in the workspace via sh -c (pipes/redirects/globs work), for verifying an edit compiles or tests pass without leaving plumb. DISABLED by default: enable it with [commands] allow_shell = true in your global config, or in a project's .plumb/config.toml plus plumb trust. Runs under an OS sandbox when available, but that sandbox is INTEGRITY-ONLY: it confines writes, not reads — the command runs with the user's credentials and the daemon's environment, so it can read any file and secret the user can (e.g. ~/.ssh, API keys) and reach the network unless [commands] deny_network is set. Enable it only for repositories you trust. Output and runtime are bounded. Prefer run_command for anything you run repeatedly — a named allow-list entry is safer and needs no enabling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesThe shell command to run, executed via sh -c so pipes, redirects and globs work (e.g. "go test ./... | tail -5"). Runs in the workspace under an OS sandbox when available.
Behavior5/5

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

Without annotations, the description fully discloses critical safety behavior: sandbox is integrity-only (confines writes, not reads), runs with user credentials, can read secrets and reach network unless deny_network is set, disabled by default, and output/runtime are bounded. This is exemplary transparency beyond what annotations would provide.

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 dense but efficiently structured: purpose first, then enabling, security criticals, and alternative. Every sentence carries distinct important information—no fluff, no repetition. It remains thorough without being bloated.

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?

Given the tool's high complexity, lack of annotations, and absence of an output schema, the description covers all essential context: purpose, security model, configuration, bounded behavior, and the safer alternative. Nothing important is omitted for an agent to safely invoke this 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?

The schema already fully describes the 'command' parameter, including sh -c behavior, pipes/redirects/globs, an example, and workspace execution (100% coverage). The description adds no new parameter-specific meaning beyond the schema, so the baseline of 3 is appropriate.

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 opens with a specific action: 'Run an ad-hoc shell command in the workspace via sh -c' with concrete examples and intent (verifying an edit compiles or tests pass). It distinguishes itself from the sibling 'run_command' by explicitly framing this as ad-hoc versus repeated use, making the purpose clear and differentiated.

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: for verifying an edit compiles or tests pass without leaving plumb. It also gives a clear when-not-to-use rule: 'Prefer run_command for anything you run repeatedly', plus necessary prerequisites (enable via config, plumb trust). This is more than sufficient.

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/plumbkit/plumb'

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