Skip to main content
Glama

browser_storage

Manage localStorage, sessionStorage, and cookies for the current page: list keys with names, sizes, and flags without exposing values; set, remove, clear, or retrieve a specific value when needed.

Instructions

localStorage, sessionStorage or cookies for this page. Reads return names, sizes and flags — never values, because a value is usually a token and a token in context is a leak. Use action "get-value" for one key when you genuinely need its content, and "set"/"remove"/"clear" to change state.

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

Input Schema

NameRequiredDescriptionDefault
keyNoKey name, or cookie name
valueNoValue for set — never echoed back
actionNoget=list, get-value=one key's content, clear=empty the store
domainNoCookie domain (defaults to the current page)
targetNoWhich store (default local)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.5.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does so well: it discloses that reads never return values and explains the reason (tokens in context leak), and it notes set values are never echoed back. The notable gap is that 'clear' is a destructive, irreversible operation with no warning or confirmation note, which matters most for an unannotated mutation path.

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?

Three tight sentences, read behavior front-loaded before the mutation actions, with zero padding. The parenthetical rationale for hiding values earns its space because it changes how an agent will call the tool.

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 5-parameter, unannotated tool with no output schema, the description covers the essential contract: what reads yield and how to obtain a value when needed, closing the output-shape gap that the missing output schema leaves. It falls short only on the destructive nature of 'clear' and on cookie domain behavior.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real intent beyond the enum docs: it explains why 'get' is the default and frames 'get-value' as a deliberate escalation for a single key. It does not elaborate on 'domain' or 'target' defaults, though the schema already covers those.

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 first sentence names the exact resources (localStorage, sessionStorage, cookies) scoped to 'this page', and the rest states the read semantics (names, sizes, flags) and the mutation actions. It is a specific verb+resource statement. It stops short of naming a sibling it might be confused with (e.g. browser_eval, which could also touch storage), so it is clear but not sibling-differentiating.

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

Usage Guidelines4/5

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

It gives explicit mode-selection guidance: default reads, 'use action get-value for one key when you genuinely need its content', and set/remove/clear for mutations. The condition for escalating to a value read is stated clearly. What is missing is any when-not/exclusion against alternative tools such as browser_eval or browser_extract.

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