Skip to main content
Glama
SSH Terminal for Codex

SSH Terminal for Codex

by kanade13

clear_history

Clear an SSH session's in-memory terminal history and advance its cursor to the new end. Use it to reset scrollback and keep subsequent reads aligned to fresh output.

Instructions

Clear one SSH session's in-memory terminal history and move that session's MCP cursor to the new end.

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

Input Schema

NameRequiredDescriptionDefault
session_idNoTarget sessionId from list_sessions. Required by the bridge when multiple sessions exist.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.1

TDQS

B3.4/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; it does disclose two valuable behavioral traits: the history is in-memory (not persisted files/logs) and clearing also shifts the MCP cursor, which is a non-obvious side effect. It omits whether the operation is irreversible, what happens for an unknown/absent session, and whether other sessions are unaffected. Good disclosure but not complete for a destructive operation.

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?

A single sentence with zero filler, front-loading the primary effect and trailing the cursor side effect. Every clause earns its place.

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 one-parameter tool with a fully documented schema and no output schema, the description covers scope, what is destroyed, and the cursor side effect. The remaining gap is return-value and failure behavior, which is minor here but would matter for an agent sequencing this with reset_cursor or snapshot.

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 100% and the single session_id parameter is already documented as coming from list_sessions. The description's 'one SSH session's' framing reinforces the scope but adds no syntax, format, or default-behavior detail beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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 ('Clear') and resource ('one SSH session's in-memory terminal history'), plus the secondary effect of moving the session's MCP cursor. An agent can tell this is a per-session destructive history operation rather than a command or session-management call. It stops short of naming a sibling (e.g. reset_cursor) as the alternative, so differentiation is inferential.

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 explicit when-to-use or when-not-to-use guidance and no named alternative. A sibling named reset_cursor plausibly overlaps on the cursor side, but the description gives the agent nothing to choose between them. The only usage signal is the implicit 'one SSH session' scoping.

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