Skip to main content
Glama

storage.snapshot

Read-only

Captures local and session storage as inline state, optionally filtered by key prefix. Use it to inspect or save app-scoped data and restore it with storage.import.

Instructions

Local and session storage inline, optionally narrowed to a key prefix. Use for app-scoped state (feature flags, tour progress); pair with storage.import to restore it.

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": "storage.snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoDefault both.
prefixNoOnly keys starting with this, e.g. "myapp_".
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
max_value_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds scope hints (inline retrieval, prefix narrowing, restoration pairing) but does not describe what the returned structure looks like or note the value truncation implied by max_value_chars.

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?

Two short sentences, front-loaded with the resource and scope. The first clause is slightly compressed ('Local and session storage inline') but nothing is wasted or redundant.

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 five-parameter, read-only snapshot tool with no output schema, an agent still lacks a sense of the return shape (key/value map per storage kind) and what happens to long values. Adequate, but there are gaps an agent would notice on first 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 description coverage is 80%, so the schema already explains kind, prefix, target_id, and browser_id. The description only echoes the prefix-narrowing idea; max_value_chars, the one undocumented parameter, is left unexplained in both places, so 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?

States the resource precisely (local and session storage) and the behavior (returned inline, optionally narrowed to a key prefix). It is distinguishable from storage.export/import siblings by the 'inline' framing, though it never explicitly contrasts with them.

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?

Gives a concrete use case ('app-scoped state (feature flags, tour progress)') and names the companion tool storage.import for restoring the snapshot. It stops short of explicit when-not-to-use guidance or naming an alternative for non-app-scoped reads.

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