Skip to main content
Glama
Calevi-Consulting

ssh-mcp-dynamic

ssh_sudo_exec

Run sudo commands on remote hosts via SSH with configurable host, key, user, port, and timeout.

Instructions

Execute a shell command with sudo on a remote host via SSH.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNoProvide a configured key shortcut or a full path to the private key file (supports a leading ~ for the home directory).
hostYesIP address or hostname of the remote server
portNoSSH port (default: 22)
userNoSSH username (default: root)root
commandYesShell command to execute with sudo (do not include 'sudo' prefix)
timeoutNoTimeout in milliseconds (default: 60000)
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It discloses that the command runs with sudo but does not mention authentication requirements, key handling specifics, potential side effects, or error conditions. The disclosure is minimal beyond the core purpose.

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?

The description is a single, efficient sentence that conveys the core purpose without waste. It could include slightly more context (e.g., mentioning the key parameter or that 'sudo' should not be included in the command) without becoming verbose.

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?

With 6 parameters, no output schema, and no annotations, the description is too brief to be complete. It lacks details about return values, error handling, authentication process, and usage caveats. The description only covers the basic purpose, leaving significant gaps for an agent.

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?

The input schema has 100% coverage with descriptions for all 6 parameters. The description adds no additional meaning beyond what the schema already provides. Baseline score is appropriate given the schema's thoroughness.

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?

The description clearly states the verb 'Execute' and the resource 'a shell command with sudo on a remote host via SSH'. It distinguishes this tool from the sibling tool ssh_exec by explicitly mentioning 'with sudo', making its unique purpose unambiguous.

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 description implies usage when sudo is needed but does not provide explicit guidance on when to use this versus ssh_exec, nor does it mention prerequisites or scenarios where this tool should be avoided. The context is implied but not clearly stated.

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

Install Server

Other Tools

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/Calevi-Consulting/ssh-mcp-dynamic'

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