Skip to main content
Glama

Read or write an extension private storage

browser_extension_storage

Read, write, remove, or clear an extension's private key/value storage (browser.storage.local) via a background extension page; requires an extension page such as an options page.

Instructions

Read or write the private key/value storage of an extension (browser.storage.local) — where an extension keeps its own settings and lists. It works by opening one of the extension own pages in a background tab, running the storage call in that page context (the only place where the extension APIs exist), then closing the tab. MEASURED limitation: a page of the extension is required, so extensions without an options page cannot be reached this way.

Input Schema

NameRequiredDescriptionDefault
idYesExtension id
dataNoObject to write
keysNoKeys to read or remove (read defaults to all)
actionYesWhat to do

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With only readOnlyHint=false available, the description earns credit by disclosing the mechanism: a background tab is opened on an extension page, the call runs in that page context, and the tab is closed. It also flags a measured reachability limitation. It stops short of saying what mutating actions destroy or what read returns.

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 dense sentences: the first defines the resource and scope, the second explains the mechanism and its limitation. No filler, and the identifying information is front-loaded.

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 four-parameter tool with no output schema, the description covers the mechanism, the prerequisite, and the failure mode well. The main remaining gap is what a read returns (shape of the key/value result), which would help an agent plan the follow-up call.

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%, so id, keys, data, and the action enum are already documented in the schema. The description adds context for the storage namespace but no parameter-level meaning (e.g., which actions require data or keys, or key semantics). Baseline 3 is appropriate.

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 pair (read/write) and resource (extension private key/value storage, browser.storage.local) with the added clarification that it holds settings and lists. It is distinguishable from siblings like browser_extension_details or browser_run_in_extension, though it never names those alternatives explicitly.

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 implied by the resource description, and a hard constraint is given (extensions without an options page cannot be reached). However, there is no explicit when-to-use versus browser_run_in_extension or browser_extension_details, and no guidance on which action to pick for a given goal.

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

Deploy Server

Other Tools