Skip to main content
Glama

Read or set the page's web storage

qa_storage

Read or write a web app's localStorage and sessionStorage to flip feature flags, expire tokens, or verify what the app persisted. Reads are free; set, remove, and clear writes require Agent control consent.

Instructions

Read and write the app's own localStorage / sessionStorage — flip a feature flag, expire a token to test the re-auth path, or prove what the app actually persisted after a save. Without op (or with op:'list'/'get') it READS and is free like every other read on this bridge; op:'set'|'remove'|'clear' WRITES and needs the Agent control consent, because changing a stored token or flag changes what the app does just as surely as clicking does. Closed vocabulary — it executes nothing you supply, it names a key. Listing truncates long values at 300 chars; ask for one key by name to get it whole.

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": "qa_storage"
  }
}

Input Schema

NameRequiredDescriptionDefault
opNoDefault 'list' (or 'get' when a key is given)
keyNoThe key to read, set or remove
areaNoWhich store (default 'local')
tabIdNoTarget tab (from qa_tabs); omit for the active tab
valueNoThe value, for op:'set'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: reads are free, writes require Agent control consent, listing truncates values at 300 chars, and the tool executes nothing supplied ('it names a key'). It even explains why writes are gated — a stored token or flag changes app behavior as surely as a click.

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 front-loaded and dense with no filler sentences, but the middle sentences are long and run together (consent rationale, closed-vocabulary note, truncation note in one block). Slight tightening would improve scannability without losing content.

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

Completeness5/5

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

For a 5-parameter tool with no output schema, the description covers the read/write split, the consent gate, the default behavior, and the shape of returned values (truncated in list, whole in get). Nothing an agent needs to invoke it correctly is missing.

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 the baseline is 3. The description adds meaning on top: the default-op behavior, the list-vs-get truncation tradeoff (ask for one key by name to get it whole), and the reason writes need consent. It stops short of detailing the `area` or `tabId` semantics, which the schema already covers.

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?

The description names a specific verb pair and a specific resource: 'Read and write the app's own localStorage / sessionStorage'. It further splits the tool's own modes (read vs. set/remove/clear), so an agent knows exactly what capability this is without opening the schema.

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 concrete motivating scenarios — flip a feature flag, expire a token to test re-auth, prove what the app persisted — and explains which op values select read vs. write behavior. It doesn't name a sibling alternative, but no sibling in the catalog appears to touch web storage, so the omission is not costly.

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