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; the next call starts a new session.

Instructions

Close the native desktop session: drops screenshot frames and element refs. The next call opens a new one.

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

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds the operationally important detail the annotations cannot: the specific state that is invalidated (screenshot frames and element refs), which tells the agent that cached refs become unusable afterward. It does not say what happens if no session is open, but the core invalidation semantics are disclosed.

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 sentences, no filler, with the effect front-loaded before the follow-on behavior. Every clause carries information the agent needs: the action, the invalidated state, and the consequence for the next call.

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?

With no parameters, no output schema, and simple annotations, the definition covers what an agent needs: what is dropped and what happens next. The remaining gap is the no-active-session case (error vs no-op), which matters somewhat given idempotentHint=true but is minor for a zero-arg lifecycle tool.

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 the baseline is 4; there is nothing for the description to document beyond confirming the absence of inputs. No parameter meaning is missing or misleading.

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 and resource ('Close the native desktop session') and immediately narrows the meaning by naming what is actually discarded: screenshot frames and element refs. That prevents the agent from misreading it as closing applications or windows. No sibling tool performs session lifecycle work, so differentiation is implicit rather than spelled out.

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 implied rather than stated: 'The next call opens a new one' tells the agent this is a lifecycle boundary and that subsequent calls start fresh, which hints at when to call it (stale frames/refs, wanting a clean state). It never explicitly says when to prefer this over simply calling screenshot or ax_tree again, and gives no when-not guidance.

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