Skip to main content
Glama

Read/write web storage

storage

Manage a tab's local or session web data by reading, setting, removing, or clearing same-origin keys and entries.

Instructions

Read or write a tab's localStorage or sessionStorage (same-origin). get → one key (if key given) or all entries; set → key+value; remove → key; clear → wipe the area. Returns {ok, entries?|value?, error?}.

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": {
      "tabId": "<tabId>",
      "area": "<area>",
      "action": "<action>"
    },
    "name": "storage"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoKey (required for set/remove; optional for get)
areaYeslocalStorage or sessionStorage
tabIdYesTarget tab ID (must be in the MCP group)
valueNoValue (for set)
actionYesget / set / remove / clear

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.1

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the whole burden. It does disclose the mutation effects of each action (remove deletes a key, clear 'wipes the area') and the return shape {ok, entries?|value?, error?}, which is valuable. It omits whether writes survive reloads, quota/error conditions, and whether the page must be loaded, leaving meaningful gaps for a write-capable tool.

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 dense sentences, front-loaded with scope, then per-action semantics, then return shape. The arrow notation is compact and every clause carries 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 5-parameter, 4-action storage tool with no output schema, the description supplies both action semantics and the response shape, covering most of what an agent needs. Remaining gaps are persistence behavior and error conditions, which are secondary but not trivial for a mutation-capable tool.

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 the schema already documents all five parameters including per-action key requirement. The description restates the same key/value conditions in one compact clause without adding syntax, format, or type details beyond it, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb (read or write) plus the exact resource (a tab's localStorage or sessionStorage) and adds the same-origin qualifier. It is immediately distinguishable from siblings like cookies or javascript_tool, which handle different storage/surfaces.

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?

The action breakdown (get / set / remove / clear) tells the agent which operation to pick for each intent, and each branch names the required inputs. It does not explicitly exclude alternatives (e.g., cookies or javascript_tool) or state prerequisites such as the tab needing to be attached, so it stops short of full routing guidance.

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