Skip to main content
Glama

run_command

Execute a subprocess with an argument list, optionally in a specified working directory and with a timeout. Use for running commands when inspection is insufficient.

Instructions

Run a subprocess with argv list only (no shell). Optional cwd relative to workspace or absolute path under root. Use only when necessary; prefer read/list for inspection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNo
argvYes
timeout_secNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/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 mentions 'no shell' which is important for security, and cwd constraints. However, it lacks disclosure of potential side effects, output handling, or timeout behavior.

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 two sentences with no wasted words, front-loading the core action and usage guidance.

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?

With 3 parameters and no annotations, the description covers argv and cwd adequately. The timeout parameter is undocumented, but the presence of an output schema may compensate for return behavior. Overall, sufficient for command execution.

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 coverage is 0%, so description must compensate. It adds meaning for argv (list only) and cwd (relative or absolute under root), but provides no information about the timeout parameter.

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 clearly states the tool runs a subprocess with an argv list and no shell, and specifies cwd constraints. It distinguishes from sibling tools (read_file, list_files) by explicitly advising to prefer those for inspection.

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?

The description explicitly says 'Use only when necessary; prefer read/list for inspection', providing clear when-to-use guidance and directing to alternatives.

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/mdvohra/agent-godmode'

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