Skip to main content
Glama

execute_command

Execute shell commands on remote Linux servers through SSH, capturing stdout, stderr, and exit code for AI-driven development environments.

Instructions

Execute a shell command on the remote server. Returns stdout, stderr, and exit code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesThe shell command to execute
workingDirectoryNoOptional working directory (defaults to home directory)
Behavior2/5

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

No annotations are provided, so the description carries full responsibility for behavioral disclosure. It reveals that the tool returns stdout, stderr, and exit code, but omits important traits such as side effects (e.g., modifying system state), required permissions, or shell environment. For a command execution tool, this is a significant gap.

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 only two sentences, front-loaded with the tool's purpose and followed by return-value information. Every sentence contributes meaning, with no unnecessary fluff.

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?

With no annotations or output schema, the description covers the primary function and return format, which is adequate for a simple two-parameter tool. However, it lacks safety caveats, usage boundaries relative to sibling tools, and any mention of environmental context, leaving it minimally complete.

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%, and the parameter descriptions in the schema (e.g., 'The shell command to execute') already provide clear meaning. The description adds no additional parameter details, so the baseline score of 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 clearly states it executes a shell command on the remote server, using a specific verb+resource structure. It distinguishes itself from sibling tools like read_file, write_file, and connect_ssh by targeting arbitrary command execution.

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 it should be used when a shell command needs to run, but it provides no explicit when-to-use or when-not-to-use guidance, and does not reference alternatives. Sibling tool context exists but is not leveraged in the description.

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/arieend/mcp-ssh-server'

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