Skip to main content
Glama

Run command in sandbox

run_sandboxed

Runs shell commands inside an ephemeral, locked-down Docker container with no network by default, dropped capabilities, read-only filesystem, and audit logging for safe agent execution.

Instructions

Executes a shell command inside a locked-down, ephemeral Docker container: non-root, all capabilities dropped, read-only filesystem, resource-limited, and no network access unless an egress allowlist has been explicitly configured. Every call is audit-logged before execution.

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": "run_sandboxed"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYesShell command to run inside the sandbox
networkNoNetwork mode. 'none' (default) has no network access at all. 'allowlist' routes through the configured egress allowlist.none

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does well: it discloses non-root execution, dropped capabilities, read-only filesystem, resource limits, default no-network behavior, the allowlist exception, and pre-execution audit logging. It stops short of describing timeouts, output/return behavior, or error conditions, which keeps it from a 5.

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?

A single dense sentence front-loads the action and then stacks the security constraints without filler; every clause adds operational meaning.

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?

For a two-parameter tool with full schema coverage and no output schema, the definition covers the important execution environment and safety posture. Minor gaps remain around return values, timeout behavior, and how failures are surfaced.

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 description coverage is 100%, so both parameters are already documented; the description reinforces the default no-network mode and the allowlist exception but adds no syntax or formatting detail beyond the schema. Baseline 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 verb and resource ('Executes a shell command') and immediately names the execution environment ('locked-down, ephemeral Docker container'), which lets an agent distinguish this from the audit-log and allowlist siblings.

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?

It explains the sandbox context but gives no explicit when-to-use or when-not-to-use guidance, and it does not mention alternatives for running commands outside a sandbox or for configuring the egress allowlist referenced in the description.

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

Deploy Server

Other Tools