Skip to main content
Glama
SSH Terminal for Codex

SSH Terminal for Codex

by kanade13

reset_cursor

Resets the MCP client's local incremental read cursor so you can re-read terminal output, optionally targeting one session with session_id.

Instructions

Reset the MCP client's local incremental read cursor. Pass session_id to reset only one session cursor.

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

Input Schema

NameRequiredDescriptionDefault
session_idNo

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 usefully discloses that the cursor is local to the MCP client rather than server-side state, which is non-obvious for a tool named reset_cursor, but it omits the consequence of the reset (e.g., whether the next read re-delivers already-seen items), error behavior for an unknown session_id, and whether the reset is reversible.

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?

Two short sentences with zero filler, and the core statement of what is reset comes before the parameter note. Nothing could be removed without losing meaning.

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, annotation-free tool with no output schema, the description covers purpose and parameter scoping adequately. It is not complete on the operational side: an agent calling it cannot tell whether the reset affects subsequent reads, whether a confirmation is returned, or what invalid input does.

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 description coverage is 0%, so the description must compensate, and it does: "Pass session_id to reset only one session cursor" explains that the parameter is an optional scope selector and that omitting it affects all cursors. It stops short of stating format expectations or what happens when the supplied session_id is not a known session.

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 pairs a specific verb ("Reset") with a specific resource ("the MCP client's local incremental read cursor"), which is far more precise than the bare name suggests. It does not name or distinguish itself from any sibling tool, so an agent must infer that cursor resetting is distinct from clear_history or list_sessions on its own.

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?

Usage is only implied: the reader infers this is for correcting a stale or stuck incremental read position. The second sentence does give a concrete condition-shape (pass session_id to scope; omit it to reset broadly), but there is no explicit when-to-use, when-not-to-use, or named alternative.

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