Skip to main content
Glama

browser_get_local_storage

Read localStorage from the current page to retrieve stored values. Pass a key for one specific value, or omit it to get all stored data.

Instructions

Read localStorage from the current page. Pass key for a specific value, or omit for all.

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

Input Schema

NameRequiredDescriptionDefault
keyNoSpecific localStorage key to read (omit for all)
partitionNoRun this call in a partition from browser_partition (an id like "p1"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.33.0
    • addedInput schema / properties / partition
      Added value: +{
      +  "description": "Run this call in a partition from browser_partition (an id like \"p1\"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.",
      +  "type": "string"
      +}
  2. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. "Read" correctly signals a non-mutating operation and "current page" scopes it, but the description is silent on failure modes (no page loaded, restricted origin), whether the read is synchronous, and what a partial/empty result looks like. Partition error behavior is documented only in the schema, not here.

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?

Two short sentences, zero filler, with the core action and the conditional parameter behavior front-loaded. Nothing could be trimmed without losing information.

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

Completeness4/5

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

For a two-optional-parameter read tool with no output schema, the definition covers purpose, scope, and the key/omit distinction adequately. The remaining gap is return shape (a value versus a key/value map) and error behavior, which are minor but real given the absence of an output schema.

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%, so both parameters are already fully documented, including the partition's unknown-id error semantics. The description only restates the key parameter behavior, adding nothing beyond the schema; baseline 3 applies.

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 states a specific verb and resource ("Read localStorage") plus the scope ("from the current page"), which is unambiguous. It does not name the obvious counterpart, browser_set_local_storage, or browser_get_cookies, so the agent must infer the boundary from the name alone.

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?

The second sentence gives conditional parameter guidance ("Pass key for a specific value, or omit for all"), which is genuine usage steering. However, it offers no when-to-use vs alternatives guidance — nothing about sessionStorage, cookies, or scripting, and no mention of prerequisites such as having a page loaded.

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