Skip to main content
Glama

remote_session_reset

Recover a wedged remote session by clearing stuck relay state, or rotate to mint a new key and require the remote listener to reconnect.

Instructions

Recover a wedged remotify session. Default (no arguments): clear stuck relay state in place - drops any queued command/result and the in-flight marker; the session key and a connected listener keep working. With {"rotate": true}: abandon the current session and mint a brand-new key - the old key dies, the remote listener disconnects, and the user must paste the NEW runner one-liner (returned by this tool) on the remote. Normally NOT needed: remote_exec auto-recovers from stale state by itself. Use it only when remote_exec stays wedged (repeated [busy] for a command you never issued) despite same-args retries, or when the user explicitly asks to reset or rotate the session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rotateNoMint a brand-new session key instead of clearing the current one in place (requires the user to reconnect the remote listener)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/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 discloses that the default path drops queued command/result data and the in-flight marker while preserving the session key and listener, and that rotate=true kills the old key, disconnects the listener, and forces the user to paste a new one-liner. It also notes the tool returns the new runner one-liner.

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?

Front-loads the default behavior, then the rotate branch, then the when-to-use guidance. It is dense but every clause earns its place by describing a distinct behavioral consequence or selection condition; there is no filler.

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

Completeness5/5

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

For a single-optional-param recovery tool with no annotations and no output schema, the description supplies everything needed: default vs rotate semantics, destructive consequences, the returned value, and the exact conditions that justify invocation. Nothing an agent needs to call it correctly is missing.

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 100%, so baseline is 3, but the description goes beyond the schema by contrasting the default no-argument behavior with rotate=true and spelling out the user-visible consequences of rotation (key dies, listener disconnects, reconnect required). That is meaningful added semantics rather than a restatement.

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?

Opens with a specific verb+resource ('Recover a wedged remotify session') and immediately distinguishes itself from the sibling remote_exec by explaining that remote_exec normally auto-recovers. An agent can tell exactly what this tool is for and how it differs from the other two siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when NOT to use it ('Normally NOT needed: remote_exec auto-recovers from stale state by itself') and the precise conditions that select it (repeated [busy] for a command never issued despite same-args retries, or an explicit user request to reset/rotate). It names the alternative tool and the triggering symptom.

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