Skip to main content
Glama

ssh_execute

Run shell commands across multiple SSH hosts simultaneously and retrieve results from each, simplifying remote server administration.

Instructions

Execute a command on one or more SSH hosts. Runs concurrently on multiple hosts and returns results from each.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNoSSH port for direct connection (default: 22)
hostsYesList of host names (from ssh_list_hosts) or IP addresses/hostnames to execute on
commandYesThe shell command to execute
timeoutNoConnection timeout in milliseconds (default: 30000)
passwordNoSSH password for direct connection (use with caution)
usernameNoSSH username for direct connection (overrides config)
privateKeyPathNoPath to SSH private key file for direct connection
Behavior2/5

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

With no annotations, the description carries the full burden of disclosing behavior. It mentions concurrency and that results are returned, but fails to warn that arbitrary commands may be destructive, lacks details on error handling, and does not describe the response structure. This is a significant gap for a command-execution tool.

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?

The description is two short sentences that immediately state the action and key behavioral trait (concurrency). Every word earns its place with no redundancy or fluff.

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?

There is no output schema, and the description does not explain the result format, error behavior, or authentication prerequisites. For a tool that executes arbitrary commands across multiple hosts, this is under-specified and leaves an agent uncertain about what to expect.

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 100%, so the schema already documents all parameters adequately. The description itself adds no additional parameter semantics, but it does not need to since the schema covers everything. Baseline 3 is appropriate.

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 uses a specific verb ('Execute') and resource ('SSH hosts'), and further clarifies scope by mentioning concurrent execution and per-host results. This clearly distinguishes it from siblings (ssh_list_hosts for listing, ssh_transfer for transferring files).

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?

The description clearly implies the tool is for running shell commands on hosts, which is distinct from listing hosts or transferring files. However, it does not explicitly state when not to use it or name alternative tools, so it stops short of full guidance.

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/laomeifun/ezssh-mcp'

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