Skip to main content
Glama

storage_set

Store a value in browser localStorage or sessionStorage and confirm by reading it back. Non-string values are JSON-encoded.

Instructions

Write one key into localStorage or sessionStorage and read it back to confirm. area='local' (default) or 'session'. Values are strings; non-string values are JSON-encoded first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
areaNolocal
valueYes
timeoutNo
session_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It discloses that the tool writes a key, verifies by reading it back, supports two storage areas, treats values as strings, and JSON-encodes non-string values. This is meaningful behavioral context beyond the bare input schema.

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?

The description is two tight sentences that front-load the action and then provide essential encoding and area details. Every clause earns its place with no filler or repetition.

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?

The core behavior is well covered, but with five parameters and 0% schema description coverage, the omission of timeout and session_id leaves the description only minimally viable for full invocation confidence. An output schema exists but does not compensate for the missing parameter semantics.

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?

The description explains key, value, and area semantics, including default area and JSON encoding behavior. However, schema description coverage is 0%, and the description does not clarify timeout or session_id, leaving two of five parameters under-documented.

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 ('Write'), a specific resource ('one key into localStorage or sessionStorage'), and a distinctive behavior ('read it back to confirm'). This clearly differentiates it from the sibling storage_get and other storage-related tools.

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?

The description makes the use case clear: setting a storage key in either localStorage or sessionStorage. It does not explicitly name alternatives or exclusion conditions, but the 'write...and read back to confirm' phrasing gives enough contextual guidance for an agent to select this tool over storage_get.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LinVireo/browsertap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server