Skip to main content
Glama
Browser MCP Server

Browser MCP Server

clear_storage

Clear browser localStorage, sessionStorage, or both to reset page data and prevent stale state from affecting web interactions.

Instructions

Clear localStorage, sessionStorage, or both.

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

Input Schema

NameRequiredDescriptionDefault
pageIdNo
targetNoWhat to clear (default: both)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden for what is an irreversible data-destroying operation, yet it never warns that stored data is permanently lost. It also omits whether clearing is scoped to a single page (the pageId parameter) or the whole browser context, and whether the action is confirmed or immediate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with zero filler, which is structurally clean. However, the brevity crosses into under-specification for a destructive tool, so the size is efficient but not appropriate to the risk.

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

Completeness2/5

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

No annotations and no output schema mean the description is the only behavioral source, and it leaves out data-loss consequences, page scoping, and the undocumented pageId parameter. For a destructive two-parameter tool this is materially incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: the target enum is documented ("What to clear (default: both)") but pageId has no description anywhere, and the description adds nothing about it. An agent cannot tell from the definition whether pageId is required, optional, or what happens if it is omitted.

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?

The description gives a specific verb ("Clear") and specific resources ("localStorage, sessionStorage, or both"), which cleanly separates it from sibling read/write tools like get_local_storage or set_local_storage. It stops short of naming an alternative or stating scope, so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus clear_cookies, clear_permissions, or load_storage_state, and no preconditions are stated. The only implicit cue is the word "Clear", leaving the agent to infer usage entirely.

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