Skip to main content
Glama

server_sudo_exec

Execute privileged shell commands via sudo -S, with optional working directory, timeout, and high-risk confirmation for safe remote administration.

Instructions

Run a privileged shell command using sudo -S.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional remote working directory.
commandYesShell command to run.
confirmNoConfirm high-risk command in safe mode.
timeoutNoOptional timeout in seconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, and apart from noting the sudo -S mechanism it discloses nothing about side effects, reversibility, how the sudo password is supplied, or what happens when privileges are unavailable. For a root-capable command execution tool this leaves most operational risk behavior unexplained.

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?

A single short sentence with the key mechanism front-loaded and no filler. It is efficient, though the terseness borders on under-specification for a privileged execution tool.

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?

For a privileged, potentially destructive command runner with four parameters, no annotations, and no output schema, the definition omits return values, error and failure modes, safe-mode semantics, and authentication requirements. More context is needed before an agent can call it confidently.

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 coverage is 100%, so cwd, command, confirm and timeout are already documented in the input schema. The description adds no format, default, or interaction detail beyond that, which matches the baseline of 3 when the schema does the heavy lifting.

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 privileged shell command) and names the mechanism (sudo -S), which implicitly separates it from the unprivileged server_exec sibling. It stops short of explicitly naming that sibling or stating the distinction, so it is clear but not fully differentiated.

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?

There is no explicit when-to-use or when-not-to-use guidance and no named alternative; the word 'privileged' only hints that root-level operations are the target. An agent must infer that server_exec is the non-privileged counterpart rather than being told.

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