Skip to main content
Glama

PillDrops

run_command

Run a shell command in the sandbox and get {stdout, stderr, exit_code}. Use bash -c '…' style strings for pipelines. Large output is truncated — write to a file and read_file it instead.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sandbox_id": "<sandbox_id>",
      "cmd": "<cmd>"
    },
    "name": "run_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
cmdYesshell command to run
cwdNoworking directory (default workspace root)
sandbox_idYessandbox id
timeout_secondsNocommand timeout (default 60)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/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 discloses the return payload, output truncation behavior, and by implication the timeout and working-directory defaults. It says nothing about the safety profile of arbitrary command execution — whether the sandbox is isolated, whether side effects persist, or what permissions are required — which is the most important undisclosed trait here.

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 compact sentences, each doing distinct work: what it does, the return shape, the pipeline idiom, and the truncation workaround. Front-loaded with the verb and result, zero filler.

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?

No output schema exists, and the description compensates by naming the returned fields and the truncation caveat. The remaining gap is environmental context — sandbox lifetime, isolation, and whether commands can modify persistent state — which matters for a tool this powerful.

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 100%, so all four parameters including the 60-second timeout and workspace-root cwd default are already documented. The description only adds the 'bash -c style string' convention for cmd, which is a modest increment over the schema.

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 a shell command in the sandbox') and immediately names the return shape {stdout, stderr, exit_code}, so it is clearly distinguishable from read_file and file-management siblings.

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

Usage Guidelines4/5

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

Gives concrete usage guidance ('Use bash -c '…' style strings for pipelines') and an explicit alternative for large results ('write to a file and read_file it instead'). It stops short of stating when not to use this versus sibling execution tools like run_cron_job or start_project_run.

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.