Skip to main content
Glama

run_sudo_command

Execute a non-interactive sudo shell command on the ARTEX host after enabling ARTEX_ALLOW_SHELL, for privileged diagnostics or administration.

Instructions

Run a shell command with sudo -n on the ARTEX host. Gated: set ARTEX_ALLOW_SHELL=true to enable.

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

Input Schema

NameRequiredDescriptionDefault
commandYes
timeoutNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/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 behavioral burden. It does disclose two meaningful traits: `-n` means non-interactive (no password prompt, failure rather than escalation) and the tool is gated behind an env flag. It says nothing about destructiveness, permission requirements, timeout behavior, or what happens on a failed command.

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?

Two short sentences, no filler, with the core action front-loaded and the gating prerequisite immediately after. Every sentence carries information the agent needs.

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

Completeness3/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 explained. However, for a privileged, potentially destructive execution tool with 0% schema coverage and no annotations, the definition is thin: timeout semantics and escalation-failure behavior are the main missing pieces an agent would need before calling it.

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% for both parameters, so the description must compensate and largely does not. It implies `command` is a shell string run under sudo, but gives no meaning for `timeout` (units, default of 120, what happens on expiry) or any guidance on command construction.

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: running a shell command with `sudo -n` on the ARTEX host. The `sudo -n` qualifier signals privileged execution, but the definition never differentiates itself from the sibling `run_command`, so an agent must guess which entry point is appropriate.

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?

It gives one concrete prerequisite (set ARTEX_ALLOW_SHELL=true to enable), which is real usage guidance. It does not say when to prefer this over `run_command` or what conditions make a sudo command appropriate, so the when/when-not guidance is only implied.

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