Skip to main content
Glama
Browser MCP Server

Browser MCP Server

load_storage_state

Restore browser cookies and localStorage from a saved JSON file so AI agents can resume authenticated sessions and preserve prior browser state.

Instructions

Load cookies + localStorage from a saved JSON file.

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

Input Schema

NameRequiredDescriptionDefault
filePathYesPath to state JSON file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden for a state-mutating operation. It names the state categories loaded but says nothing about whether existing cookies/localStorage are replaced or merged, whether a browser/page connection is a prerequisite, or what happens on a missing or malformed file.

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 zero filler; the loaded resource types appear before the source. Nothing could be removed without losing information.

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 tool with no output schema, the definition covers what is loaded and from where. It is still incomplete on the two things an agent most needs for a state-restoring call: prerequisites (an active browser context) and overwrite semantics.

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 coverage is 100% with a single required filePath already documented as "Path to state JSON file." The description's mention of a saved JSON file is consistent but adds no format, path-resolution, or relative-vs-absolute detail beyond the schema.

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 ("Load") and concrete resources ("cookies + localStorage") plus the source ("saved JSON file"), which cleanly separates it from siblings like save_storage_state and clear_storage. It stops short of naming the complementary save tool, so the pairing must be inferred.

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: "from a saved JSON file" hints this is a restore step following a prior save, but the description never says when to use it, when not to, or what alternative to pick for clearing or reading storage. An agent must infer the lifecycle context.

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