Skip to main content
Glama

run_command

Run a shell command on your computer (bash). Returns stdout, stderr and the exit code. This is a real persistent machine — anything you install or change here is still here next session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory (default /workspace)
commandYesShell command to run
timeout_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
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 does add genuinely useful context — the return channels (stdout/stderr/exit code) and, importantly, that state persists across sessions, which is a real behavioral trait. But it omits destructiveness/irreversibility warnings, timeout semantics (capped at 600s), and any sandbox or permission model.

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 short sentences, front-loaded with the action and output contract, then the persistence caveat. Every sentence adds information; there is no filler.

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?

No output schema exists, and the description does cover the return contract, which helps. But with zero annotations and an arbitrary-execution tool, it should still say more about timeout behavior, failure semantics, and how it relates to the dedicated sibling tools.

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?

Schema coverage is only 67%: cwd and command are documented inline, but timeout_seconds has no description at all. The description says nothing about parameters — not the /workspace default working directory, not the timeout bounds — so it fails to compensate for the undocumented parameter.

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 and resource ('Run a shell command on your computer (bash)') and enumerates the return values (stdout, stderr, exit code). However, it never distinguishes itself from siblings like install_package, read_file, write_file, or list_directory, which it clearly overlaps with as a generalized escape hatch.

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?

There is no when-to-use or when-not-to-use guidance and no mention of any alternative. An agent must infer on its own whether to reach for run_command versus the many dedicated siblings (install_package, read_file, list_directory), which is a material omission for such a broad tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources