Skip to main content
Glama
SSH Terminal for Codex

SSH Terminal for Codex

by kanade13

snapshot

Reads terminal or isolated command output for an SSH session, with history, raw event, and peek options to inspect output without advancing the saved cursor.

Instructions

Read output. Auto reads this chat's latest isolated command for the session, otherwise the user's terminal. Set channel=terminal explicitly to inspect panel output; prefer command_status for commands.

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

Input Schema

NameRequiredDescriptionDefault
fullNoRead recent history from the beginning of retained history instead of the saved MCP cursor.
peekNoRead without advancing the saved MCP cursor.
afterNoExplicit seq cursor to read after.
limitNoLine limit by default, or event limit when events=true.
eventsNoReturn raw event chunks instead of compact lines.
channelNoauto
no_compactNoDisable carriage-return progress compaction.
session_idNoTarget sessionId from list_sessions. Required by the bridge when multiple sessions exist.
event_limitNoMaximum raw events to inspect when building compact lines.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.1

TDQS

A3.6/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 behavioral burden. It discloses the channel fallback logic and the panel-inspection route, but says nothing about the cursor semantics — that reads advance a saved MCP cursor unless peek=true, which is a meaningful side effect only documented in the schema — nor about multi-session requirements or failure modes.

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?

The routing information is front-loaded in three compact clauses with no filler. The telegraphic style ("Auto reads this chat's latest isolated command for the session, otherwise the user's terminal") is slightly clipped but each sentence carries a distinct routing fact.

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 nine-parameter read tool with 89% schema coverage and no output schema, the description only needs to supply routing context and channel semantics, which it does. Cursor-advancement behavior and session_id bridging are covered by schema descriptions, so the remaining gap is small.

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 coverage is 89%, so the baseline is 3. The description does add real value for the channel enum, which the schema lists without a description, by explaining what auto and terminal actually resolve to. The other eight parameters (full, peek, after, limit, events, no_compact, session_id, event_limit) receive no elaboration in the description.

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 opens with a specific verb ("Read output") and then pins down the resource: this chat's latest isolated command output for the session, falling back to the user's terminal. It also differentiates itself from a sibling by directing command inspection to command_status. The leading phrase alone is thin, but the qualifying clauses make the tool's identity unambiguous.

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?

It states the default resolution order (session command output, else terminal) and gives an explicit opt-in ("Set channel=terminal explicitly to inspect panel output"), plus a named alternative for commands. What's missing is guidance on session selection or when snapshot is inappropriate for other channels, so it stops short of full when/when-not coverage.

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