Skip to main content
Glama
Browser MCP Server

Browser MCP Server

save_storage_state

Persist browser sessions by saving cookies and localStorage to a JSON file, enabling state restoration across sessions.

Instructions

Save cookies + localStorage to a JSON file for session persistence.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "filePath": "<filePath>"
    },
    "name": "save_storage_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYesPath to save state JSON

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the full behavioral burden. It does disclose the important trait that both cookies and localStorage are captured (and implicitly that sessionStorage is not), but says nothing about overwrite behavior for an existing file, path resolution, or whether a parent directory must exist.

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 no filler; the resource scope and the purpose arrive immediately. Nothing is repeated from the schema and nothing wasteful is included.

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

Completeness3/5

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

For a one-parameter, low-complexity tool this is close to adequate, but the absence of annotations means the definition should mention overwrite semantics and whether the target directory must exist. As written, an agent could call it without knowing the file-creation side effects.

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

Parameters3/5

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

Schema description coverage is 100% and the single filePath parameter is fully documented in the schema, so the baseline of 3 applies. The description adds no extra parameter meaning such as relative vs absolute paths or expected file extension.

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 (save), a precise resource pair (cookies + localStorage), and the output form (JSON file). The word 'save' also cleanly distinguishes it from the sibling load_storage_state, so an agent can pick the right one without opening either schema.

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?

'For session persistence' implies the use case but gives no explicit when/when-not guidance, no ordering constraint (e.g. run before close_browser), and no mention of an alternative. Usage is inferable but left to the agent.

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