Skip to main content
Glama

storage

Read-onlyIdempotent

Retrieve browser localStorage contents as a JSON string, then parse the result to inspect saved keys and values.

Instructions

[Agent Browser] Get localStorage contents as JSON string. Returns data.storage. Use JSON.parse() on result to access individual keys. For sessionStorage, use evaluate('JSON.stringify(sessionStorage)').

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, but the description adds genuinely new behavior: the value comes back as a JSON string under data.storage and must be JSON.parse()d before individual keys are usable. That return-shape caveat is the kind of context annotations cannot convey.

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 short lines, front-loaded with the purpose, then the return path, then the escalation path for sessionStorage. Every sentence carries distinct information and nothing repeats the annotations.

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 zero-parameter read with an output schema and full annotation coverage, this is sufficient. The author still supplied the one non-obvious detail -- that the payload is a string requiring parsing -- which prevents a common misuse.

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?

The tool takes zero parameters and the schema confirms an empty properties object, so there is nothing for the description to disambiguate. The baseline of 4 applies with no gap to fill.

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 specific verb and resource -- 'Get localStorage contents as JSON string' -- and immediately scopes it against the near-identical sessionStorage case. An agent can tell exactly what this retrieves versus what requires evaluate().

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?

Provides an explicit alternative for the closest ambiguous case: sessionStorage must go through evaluate('JSON.stringify(sessionStorage)'). It does not discuss other storage-adjacent siblings such as cookies or clear, but the main selection decision is resolved in the text.

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