Skip to main content
Glama
SSH Terminal for Codex

SSH Terminal for Codex

by kanade13

send_command

Run non-secret SSH commands in an isolated channel separate from user terminals and chats; returns a commandId for reading output via command_status.

Instructions

Run a non-secret command in its own SSH channel, isolated from the user's terminal and other chats. Returns commandId; read output using command_status. Each command starts a fresh shell: include cd and environment activation explicitly. Reuses authenticated SSH only, never prompts for credentials or replays commands.

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

Input Schema

NameRequiredDescriptionDefault
commandYes
session_idNoTarget sessionId from list_sessions. Required by the bridge when multiple sessions exist.
expected_profile_nameNoOptional guard; command is rejected if session_id belongs to another profile.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.1

TDQS

A4.6/5.0
Behavior5/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 so well: it states the async contract (returns commandId, poll via command_status), the session model (fresh shell per command), and two hard behavioral guarantees (reuses authenticated SSH only, never prompts for credentials, never replays commands). These are exactly the traits an agent cannot infer from the schema.

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?

Four tight sentences, front-loaded with what the tool does, followed by how to retrieve results, the shell-state caveat, and the safety guarantees. No filler or restatement of the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a command-execution tool with no output schema and no annotations, it covers the important contract: async return of commandId, how to read results, and credential/replay guarantees. It stops short of failure modes an agent would want — timeouts, whether the call blocks, exit-code reporting, or what happens if session_id is omitted when multiple sessions exist.

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

Parameters4/5

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

Schema coverage is 67% and the schema documents session_id and expected_profile_name, so the main added value is on 'command': the description constrains it to non-secret content and specifies it must be self-contained (include cd and environment activation). It does not add syntax, quoting, or length limits beyond that.

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?

Names a specific verb and resource ('Run a non-secret command') plus the execution context ('in its own SSH channel, isolated from the user's terminal and other chats'), which distinguishes it from terminal-typing and chat-scoped alternatives. Direction to command_status for output further pins down its role.

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?

Explicitly routes output reading to command_status and warns that each invocation gets a fresh shell, so callers must re-issue cd and environment activation. The 'non-secret' qualifier implies a boundary, but the definition never names the alternative path for secrets (e.g. panel_private_input), leaving that inference to the agent.

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