Skip to main content
Glama

ssh_exec

Runs shell commands on SLURM HPC clusters over SSH with configurable timeouts and verbosity, enabling remote job and cluster management.

Instructions

Execute a command on HPC via SSH

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

Input Schema

NameRequiredDescriptionDefault
commandYesShell command to run on HPC. Max 500 chars. No heredoc, no python -c, no multi-line code. Write scripts locally and upload via sync_files.
timeoutNoTimeout in ms (1000-600000, default 30000)
verboseNoForce full output (bypass noise filter)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

C2.9/5.0
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 behavioral burden, yet it discloses nothing about whether commands are destructive, what permissions or authentication are needed, output truncation/noise filtering, or how failures surface. It adds only the transport detail ('via SSH') already implied by the tool name.

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 front-loaded sentence with zero filler, which is structurally clean. Its brevity works against it only in that nothing meaningful was said, which is captured under other dimensions.

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 remote command-execution tool with no annotations, no output schema, and real potential for destructive side effects, the definition is far too thin. An agent gets no sense of execution environment, return format, or safety expectations beyond what the parameter schema happens to state.

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 all three parameters (command, timeout, verbose) are fully documented in the schema, and the description adds nothing on top. Baseline 3 applies when the schema does all the parameter work.

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 names a specific verb and resource ('Execute a command on HPC via SSH'), so an agent immediately knows it runs remote shell commands. It does not, however, distinguish itself from siblings like terminal_exec, ssh_interactive, or slurm_submit, which all plausibly execute remote operations.

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 statement of when to use this tool versus terminal_exec (local shell) or ssh_interactive (persistent session), nor any exclusion or prerequisite. The agent must infer routing from sibling names alone, which the brief explicitly says is not sufficient.

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