Skip to main content
Glama

storage_set

Write string values to a page's local or session storage in a controlled browser tab, letting you persist and seed client-side state before or after automation steps.

Instructions

Write string values to page local/session storage.

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": {
      "kind": "<kind>",
      "items": "<items>"
    },
    "name": "storage_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
kindYes
itemsYes
tabIdNoOptional browser tab id to act on instead of the focused tab.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It never says whether writes merge with or overwrite existing keys, whether values persist across navigation, whether the tab/origin matters, or what failures look like — significant omissions for a mutation tool.

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?

A single front-loaded sentence with no filler or redundancy. It is terse to the point of under-specification, but nothing in the wording itself is wasted.

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

Completeness1/5

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

For a four-parameter mutation tool with a nested key/value object, an unexplained 'ref' parameter, no annotations, and no output schema, one sentence is not enough. An agent could easily misuse 'ref' or assume items replaces rather than merges storage.

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

Parameters2/5

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

Schema description coverage is 50%; 'ref' and 'tabId' are documented in the schema, and the enum on 'kind' is self-explanatory. The description's 'string values' corroborates the items map shape but does not explain the surprising presence of 'ref' (an element reference, seemingly irrelevant to storage writes) or whether 'items' replaces or patches existing storage.

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 gives a specific verb and resource ('Write string values to page local/session storage'), which is enough to separate it from storage_get and cookies_set by implication. It stops short of naming alternatives explicitly, so it is clear rather than exemplary.

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?

There is no when-to-use guidance, no mention of prerequisites (e.g., needing a page loaded or being on the right origin), and no comparison to storage_get or cookies_set. The agent must infer usage entirely from the name and description.

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