Skip to main content
Glama

extension_storage

Read, write, remove, or clear Chrome extension storage (local, sync, or session) in the service worker context to inspect and modify extension data.

Instructions

Read from or write to chrome.storage (local, sync, or session) in the extension's service worker context.

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

Input Schema

NameRequiredDescriptionDefault
areaNoStorage area to use (default: local)
dataNoKey-value pairs to write (for 'set' action)
keysNoKeys to read or remove (for 'get' and 'remove' actions; omit to get all)
actionYesStorage operation: get keys, set data, remove keys, or clear all

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations present, the description carries the full disclosure burden and leaves key traits unstated: the 'clear' action wipes an entire storage area irreversibly, 'set' overwrites existing keys, and sync has quota limits and cross-device propagation while session is ephemeral. The description only conveys read/write capability and area names, so an agent cannot judge destructiveness or persistence semantics from it.

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?

One tight sentence with the resource and scope front-loaded and no filler. Nothing in it is redundant or wasted given its length.

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?

For a four-parameter tool with a nested write object, an enum-driven action, and no output schema, the description should explain what 'get' returns (a key-to-value map, or all keys when omitted) and flag that 'clear' empties the chosen area. Those omissions leave meaningful gaps for an agent composing a safe call, though the rich schema partially compensates.

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% and each parameter, including both enums and the nested data object, is documented in the schema itself. The description adds only the area list and read/write framing, which largely restates the schema; baseline 3 applies.

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 names a concrete verb pair (read/write) and a concrete resource (chrome.storage), and scopes it to the extension's service worker context with the three supported areas named. It is unambiguous about what the tool does, though it never distinguishes itself from siblings such as send_message_to_background, which could plausibly be used to proxy storage reads.

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 only implied by the phrasing: an agent can infer this is the tool for persisting or retrieving extension state. There is no explicit when-to-use versus alternatives, no guidance on choosing local vs sync vs session, and no stated prerequisites such as the extension needing an active service worker.

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