Skip to main content
Glama

clear

Destructive

Remove localStorage and sessionStorage for the current origin to reset app state, log out, or test a fresh-user experience; cookies are not affected.

Instructions

[Agent Browser] Clear both localStorage and sessionStorage for the current origin. Use to reset app state, log out, or test fresh-user experience. Does NOT clear cookies - use browser restart for full reset.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=false, so the mutation profile is covered. The description adds genuine value beyond that: the destruction is scoped to localStorage/sessionStorage only, is limited to the current origin, and deliberately leaves cookies intact. It stops short of saying what the tool returns, but an output schema exists to cover that.

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 with zero padding: capability first, use cases second, exclusion third. Each sentence carries distinct information and the most important constraint is front-loaded.

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 zero-parameter, destructive, side-effecting browser tool, the description covers scope, intent, and the main mis-invocation risk (expecting cookies to be cleared). With annotations and an output schema present, nothing material 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?

Zero parameters, so there is no parameter meaning to convey; the baseline for a no-arg tool applies. The description correctly implies the tool is fully self-scoped (current origin, two storage types), leaving nothing for the caller to supply.

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?

States a specific verb and exact resource with scope qualifier: 'Clear both localStorage and sessionStorage for the current origin.' The scope phrase 'for the current origin' is the key discriminator an agent needs, and the description immediately names what it is not ('Does NOT clear cookies').

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?

Gives three concrete use cases (reset app state, log out, test fresh-user experience) and an explicit exclusion with a remediation path ('use browser restart for full reset'). An agent knows both when to call it and when to reach for something else.

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