Skip to main content
Glama

shell_open

Open a persistent interactive SSH shell session on a target host and return its session ID; authentication or network failures are reported as AUTH_FAILED or HOST_UNREACHABLE.

Instructions

Open a persistent interactive shell session on a host over SSH and return its session id; auth or network failures are reported honestly (AUTH_FAILED/HOST_UNREACHABLE).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "shell_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose key traits: the session persists, an id is returned, and failures surface as AUTH_FAILED/HOST_UNREACHABLE rather than silent failure. It omits lifecycle behavior an agent needs — session limits, timeouts, whether it must be paired with shell_close, and whether the connection is established eagerly or lazily.

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 no filler; the purpose, return value, and error semantics all appear before the semicolon. Slightly dense but every clause carries information.

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?

For a one-parameter, no-output-schema tool the description covers purpose, return value, and failure modes, which is close to sufficient. The remaining gaps — host value format and session lifecycle — are real for an interactive-session opener that other tools must close and reuse.

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

Parameters2/5

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

Schema coverage is 0% for the single 'host' parameter, and the description only adds that transport is SSH. It does not say whether host is a hostname, IP, or an id from host_list, nor whether a port or user is expected elsewhere — leaving the one input effectively unspecified.

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?

States a specific verb and resource ('Open a persistent interactive shell session on a host over SSH') and clarifies it returns a session id, which separates it from the one-shot executors (shell_run, exec, adb_exec). It does not explicitly name a sibling or contrast with them, so it stays short of a 5.

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 words 'persistent interactive shell session' imply this is for multi-command, stateful work rather than one-off commands, but there is no explicit when-to-use or when-not-to-use guidance versus shell_run or exec. No exclusions or prerequisites (e.g. reachability, credentials) are stated.

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