Skip to main content
Glama

scalix_computer_exec

Destructive

Run a command inside a persistent Linux machine and wait for it to finish. Returns exit code, stdout and stderr. The machine must be running.

Input Schema

NameRequiredDescriptionDefault
idYesMachine id from scalix_computer_create or scalix_computer_list
cwdNoWorking directory inside the machine
envNoEnvironment variables for this command only
argsNoArguments passed to the program; omit when command is a shell string
commandYesEither a bare program (e.g. bash, with args passed separately) OR a full shell string (e.g. "apt-get install -y jq") — a command containing whitespace is run via sh -lc automatically, so no manual ["-lc", ...] wrapping is needed
timeout_msNoGive up after this many milliseconds, 1000-300000 (default 120000). 300s is the platform-wide hop ceiling — a larger request is served at 300s, not rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / timeout_ms / description
      Previous value: -"Give up after this many milliseconds, 1000-600000 (default 120000)"New value: +"Give up after this many milliseconds, 1000-300000 (default 120000). 300s is the platform-wide hop ceiling — a larger request is served at 300s, not rejected."
  2. Changed2 schema fields changed
    • changedInput schema / properties / args / description
      Previous value: -"Arguments, e.g. [\"-lc\", \"npm test\"]"New value: +"Arguments passed to the program; omit when command is a shell string"
    • changedInput schema / properties / command / description
      Previous value: -"Program to run, e.g. bash"New value: +"Either a bare program (e.g. bash, with args passed separately) OR a full shell string (e.g. \"apt-get install -y jq\") — a command containing whitespace is run via sh -lc automatically, so no manual [\"-lc\", ...] wrapping is needed"
  3. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, readOnlyHint=false, so the risk profile is covered structurally. The description still adds value by disclosing that execution is synchronous (it 'waits for it to finish'), that the machine is persistent, and what the response contains. It does not discuss timeouts/large output truncation, which is partly handled by the schema.

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, no filler. The core action and its return value are front-loaded, and the precondition is placed last where it reads as a caveat.

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 six-parameter execution tool with no output schema, the description carries the key facts: it blocks, it returns exit code/stdout/stderr, and the machine must be live. Missing is any note on output size limits or failure modes (non-zero exit vs. transport error), which would fully round out expectations.

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%, with unusually rich per-parameter docs (cwd, env, args, sh -lc auto-wrapping, timeout bounds), so the baseline is 3. The description text adds nothing about parameters beyond what the schema already explains.

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 command inside a persistent Linux machine') plus the blocking behavior and return payload. It is clearly distinguishable from file-oriented siblings, but it never names an alternative (e.g. scalix_computer_read_file or scalix_sandbox_run) to anchor the distinction.

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?

The precondition 'The machine must be running' is genuine usage guidance. However, there is no indication of when to prefer this over siblings like scalix_sandbox_run or scalix_fn_invoke, and no mention of authentication expectations.

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.