Skip to main content
Glama
Browser MCP Server

Browser MCP Server

get_local_storage

Retrieves localStorage data for a specified browser page ID, enabling AI agents to inspect stored key-value pairs and client-side state.

Instructions

Get localStorage (compact).

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

Input Schema

NameRequiredDescriptionDefault
pageIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.4/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 behavioral burden. '(compact)' vaguely hints at a reduced return shape, but it does not explain whether the result is an object, string, or encoded format, what page scoping applies, or what failure modes exist.

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?

It is a single front-loaded sentence with no filler. However, '(compact)' is ambiguous and the description is too terse to be appropriately sized for a tool whose only parameter is undocumented.

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?

With no annotations, no output schema, and 0% parameter coverage, the description must explain both the pageId parameter and the return shape. The four-word description leaves both unexplained, so the agent lacks enough to invoke it confidently.

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

Parameters1/5

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

The single optional parameter pageId has 0% schema description coverage and is never mentioned in the description. The agent cannot know whether pageId selects a tab/page, defaults to the active page, or is effectively required.

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 names a specific verb ('Get') and resource ('localStorage'), which distinguishes reading local storage from sibling write or clear tools. However, '(compact)' is unexplained and it does not explicitly differentiate this from get_session_storage or other getters.

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 when-to-use guidance, no prerequisites, and no alternative named. It does not say whether this reads the current page's localStorage, how pageId affects selection, or when to use get_session_storage instead.

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