Skip to main content
Glama
computer
by zznabil

Reset session

reset_session
Idempotent

Closes the current native desktop session and clears screenshot frames and element references so the next call starts fresh. Use it to interrupt a stuck call and reset desktop state.

Instructions

Close the native desktop session: drops screenshot frames and element refs. The next call opens a new one. It runs at once, even while another call is stuck, and cancels that call.

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_session"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond what the annotations state: it discloses the exact state that is invalidated (screenshot frames, element refs), the lifecycle (next call opens a fresh session), and concurrency semantics (executes immediately and cancels an in-flight stuck call). These are behaviors an agent could not infer from readOnlyHint/idempotentHint alone. It doesn't say whether calling it with no active session errors or is a no-op, which keeps it below 5.

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?

Three short sentences, each carrying a distinct fact: what it closes, when the replacement appears, and how it behaves under contention. Front-loaded with the action and nothing wasted.

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 zero-parameter, no-output-schema tool the description covers purpose, state invalidation, and interrupt semantics, which is most of what an agent needs. The remaining gap is edge-case behavior (no active session, or whether refs obtained after a reset are guaranteed fresh) which is not addressed.

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?

The tool takes zero parameters, so there is nothing to document beyond the empty schema; the baseline applies. The description correctly avoids inventing parameter detail and focuses on observable behavior instead.

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?

Specific verb and resource: 'Close the native desktop session', with the immediate consequence spelled out ('drops screenshot frames and element refs'). This is unmistakably different in kind from the screenshot/click/element_* siblings, so an agent can identify it without reading the schema.

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 gives clear context for use: 'The next call opens a new one' tells the agent this is a precursor to a fresh start, and 'It runs at once, even while another call is stuck, and cancels that call' identifies the recovery case. It stops short of explicit when-not guidance or naming a given alternative, which keeps it at 4 rather than 5.

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