Skip to main content
Glama

shell

Runs bounded worker-side commands in a sandbox and optionally returns compact failure summaries for tests, builds, or lint to reduce output.

Instructions

Run a bounded worker-side command inside SANDBOX_ROOT. Use digest:true for tests/builds/lint so Codex receives a compact failure summary.

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": {
      "command": "<command>"
    },
    "name": "shell"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
digestNo
commandYes
timeout_msNo
allow_destructiveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.0

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, and it does disclose real traits: execution is 'bounded', confined to SANDBOX_ROOT, runs worker-side, and digest mode returns a 'compact failure summary'. However, it says nothing about the destructive-command policy despite an allow_destructive parameter, nor about timeout defaults or how command output is captured/truncated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core action followed by the most useful tuning hint. No filler, though 'bounded' and 'worker-side' are terse enough to be slightly opaque without extra context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a high-risk arbitrary-command execution tool with no annotations, no output schema, and five undocumented parameters. The description establishes sandboxing and digest mode but omits destructive-operation policy, timeout behavior, and output/error handling — too much is left implicit for a tool of this complexity.

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 description coverage is 0% across five parameters, so the description must compensate and largely does not. It explains digest's purpose well and hints at timeout_ms via 'bounded' and cwd via SANDBOX_ROOT, but command semantics and especially allow_destructive — the highest-risk flag — are entirely unexplained.

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?

The description gives a specific verb and resource ('Run a bounded worker-side command') plus an explicit execution boundary ('inside SANDBOX_ROOT'), so an agent knows this is a command-execution tool rather than an editing or retrieval sibling. It never distinguishes itself from siblings like apply_edits or analyze, which keeps it short of a 5.

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

Usage Guidelines3/5

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

Guidance is limited to a parameter-level recommendation ('Use digest:true for tests/builds/lint'), which does imply the tool's intended use for build/test/lint commands. There is no statement about when to prefer this over other tools, no prerequisites, and no when-not conditions.

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