Skip to main content
Glama

privileged-command

Destructive

Run administrative shell commands with sudo elevation through an approved SSH workflow. The sudo password is securely piped via stdin, with policy-based approval controlling execution.

Instructions

Execute a command with sudo elevation. Goes through the approval gate; approvalPolicy on the profile decides whether that is a prompt, an automatic allow, or a refusal. The sudo password is piped via stdin (never visible in process list).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesCommand to execute with sudo
profileNoProfile name

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv2.5.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the destructiveHint annotation by disclosing the approval gate behavior, the three possible approval outcomes, and the secure handling of the sudo password via stdin. No contradiction with annotations.

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 focused sentences, each earning its place. The core action is front-loaded, followed by approval-gate behavior and a security-relevant implementation detail with no wasted words.

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 a destructive hint and no output schema, the description covers purpose, elevation, approval behavior, and password handling. It is slightly thin on expected return/output behavior, but that is not critical given the schema and annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds meaningful context by explaining that the profile's approvalPolicy controls prompt/allow/refusal behavior, which enriches the minimally documented 'profile' parameter.

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?

States a specific verb and resource: 'Execute a command with sudo elevation.' The sudo qualifier clearly differentiates this from sibling tools like run-command or read-command, so an agent can tell its purpose without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides clear context: it is for commands requiring sudo elevation and that go through the approval gate. It does not explicitly name alternatives or state when not to use it, but the elevation context makes the intended use unambiguous.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tufantunc/ssh-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server