Skip to main content
Glama

run_command

Run an arbitrary shell command on the ARTEX host as the SSH or local user, with an optional timeout. Requires ARTEX_ALLOW_SHELL=true to enable gated host shell access.

Instructions

Run an arbitrary shell command on the ARTEX host (as the SSH/local user). Gated: set ARTEX_ALLOW_SHELL=true to enable (off by default for safety).

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_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYes
timeoutNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does disclose two useful traits: the gate flag and the fact that execution happens as the SSH/local user on the host. It stops short of stating irreversibility/destructiveness, working directory, or whether output is truncated — meaningful omissions for an arbitrary-command executor.

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 short sentences, front-loaded with the action and scope, then the gate condition. Nothing is wasted, though the parenthetical could be folded in more cleanly.

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?

An output schema exists, so return values need not be described, and the enablement gate is the most consequential precondition for calling it. The remaining missing piece is timeout semantics and any note on host-side side effects, which keeps it below the top mark.

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 0%, so the description must compensate, and it does not: 'timeout' (default 120) is never explained — units, behavior on expiry, or whether the process is killed. 'command' is largely self-evident from 'shell command', so partial credit is warranted, but the timeout gap is a real miss.

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 an arbitrary shell command, scoped to the ARTEX host and executing as the SSH/local user. That execution-identity clause implicitly separates it from run_sudo_command, though it never names the sibling explicitly.

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?

Provides one real prerequisite: ARTEX_ALLOW_SHELL=true must be set, since the capability is off by default for safety. However, it gives no guidance on when to prefer this over run_sudo_command or the structured artex_* tools, leaving the routing decision to inference from a single word in the parenthetical.

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