Skip to main content
Glama

页面存储

browser_storage
Destructive

Read, write, remove, or clear localStorage and sessionStorage for the active page origin, letting you inspect, set, or wipe stored keys and values per tab.

Instructions

Read / write / remove / clear localStorage or sessionStorage of the active page origin.

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": {
      "action": "<action>"
    },
    "name": "browser_storage"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoStorage key (get without key = list all entries)
kindNolocalStorage (default) or sessionStorage
tabIdNoTab id (default: active tab)
valueNo(set) Value to store
actionYesOperation (get without key = list all)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is supplied. The description adds the origin-scoping detail and the four operation modes, but it never states the consequence of 'clear' (wiping all entries for the origin) or whether removed values can be recovered. With annotations shouldering most of the behavioral burden, this is an understandable but real gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single compact sentence with the verb set front-loaded and no filler. The slash-delimited verb list is telegraphic but still readable and it wastes no space on restating the name.

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?

This is a five-parameter tool with mutable, destructive behavior and no output schema, so the description needs to carry more weight. It never says what 'get' returns, how tabId interacts with 'active page origin', or what happens if the key does not exist. The definition is usable but not complete for a tool of this complexity.

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 all five parameters, both enums, and the 'get without key = list all entries' rule are already documented in the schema. The description adds only the origin scoping and does not explain action-specific parameter requirements (key needed for remove, value needed for set). This is the baseline for full schema coverage.

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?

It names specific verbs (read/write/remove/clear) and a specific resource (localStorage/sessionStorage), and it scopes the operation to 'the active page origin'. That is enough for an agent to tell it apart from a cookie or session tool. It does not, however, explicitly differentiate itself from any sibling, which keeps it short of a 5.

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?

The description lists the tool's capabilities but gives no guidance on when to use it rather than an alternative, nor any prerequisites or exclusions. An agent must infer usage from the tool's name and from the action enum. Nothing in the text says, for example, when to use this instead of browser_cookies or browser_evaluate.

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