Skip to main content
Glama

js_reset

Resets the persistent JavaScript REPL context and clears cached Accessibility diff baselines to restore a clean automation state.

Instructions

Reset the persistent JavaScript REPL context (js) and clear cached Accessibility diff baselines.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose the two pieces of state that get destroyed: the persistent REPL context and the cached Accessibility diff baselines. It stops short of saying whether the reset is immediate/irreversible, whether subsequent `js` calls start fresh, or what the call returns.

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 front-loaded sentence with the action first and both affected state stores named. No boilerplate or redundancy.

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-argument state-reset tool with no output schema, the description says what is reset and what secondary cache is cleared, which is enough to call it correctly. Only minor gaps remain around post-reset behavior and return values.

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, and the description adds no spurious parameter talk. Baseline 4 applies for a parameterless tool.

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 ('Reset') and a precisely scoped resource ('the persistent JavaScript REPL context (`js`)'), plus a secondary effect on cached Accessibility diff baselines. The backtick reference to `js` signals its relationship to the sibling tool of that name, though it never explicitly contrasts behavior with it.

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: an agent can infer this is for clearing stale REPL/accessibility state, but there is no explicit when-to-use, when-not-to-use, or statement of what to do afterward. No alternatives or prerequisites are named.

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