Skip to main content
Glama

server_session_write

Send commands or input to a running SSH session and return its output, enabling interaction with persistent remote shells for operations and troubleshooting.

Instructions

Send a command or input to a running SSH session and return output.

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": {
      "session_id": "<session_id>",
      "input": "<input>"
    },
    "name": "server_session_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes
confirmNo
wait_msNo
session_idYes
append_newlineNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/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 burden. It does not disclose what 'confirm' does (whether it gates dangerous commands), whether sent input mutates remote state irreversibly, whether the call blocks for wait_ms, or whether output is truncated or paginated. For a write-into-a-live-session tool that is a substantial gap.

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 efficient sentence with the core action front-loaded and zero redundant wording. Its brevity is a virtue, though it is brevity at the cost of the details noted above rather than economy of well-chosen content.

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 no annotations, no output schema, and 0% parameter coverage, the definition is far thinner than the tool's complexity warrants. Naming the return value helps slightly, but the presence of a confirm flag and a timing parameter that are completely unexplained leaves an agent unable to invoke this safely.

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 description coverage is 0% across five parameters. The description only loosely gestures at the 'input' parameter ('command or input') and says nothing about session_id, confirm, wait_ms, or append_newline, leaving four of five parameters with no meaning anywhere in the definition.

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 (send) and resource (a command or input) against a clearly scoped target (a running SSH session), plus the fact that output is returned. It does not, however, say how it differs from server_exec or server_session_read, so the agent must infer the boundary.

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?

The phrase 'running SSH session' implies a session must already exist, which is weak context. There is no explicit when-to-use, when-not-to-use, or routing to alternatives such as server_exec, server_session_read, or server_write_file, all of which plausibly overlap.

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