Skip to main content
Glama

storage.indexeddb.put

Writes a record into a specified IndexedDB object store using the page's own IndexedDB API, enabling persistent browser data storage.

Instructions

Write a record into an IndexedDB object store (executed through the page's own IndexedDB API).

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": {
      "database": "<database>",
      "object_store": "<object_store>"
    },
    "name": "storage.indexeddb.put"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNo
valueNo
databaseYes
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
object_storeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so the write/non-deterministic profile is known. The description adds real value with 'executed through the page's own IndexedDB API', signalling that the write happens in page context against the page's live database. However, it omits key semantics an agent needs for a 'put' — notably whether an existing record with the same key is overwritten, and what errors surface if the store is missing.

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?

A single front-loaded sentence with no filler, and the parenthetical about execution context is genuinely informative rather than padding. It is efficient, though brevity here comes partly at the cost of the missing detail noted elsewhere.

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

Completeness2/5

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

For a mutating tool with 6 parameters, no output schema, and low schema coverage, the definition is too thin: nothing about overwrite/upsert behavior, return value, or failure modes. Given the complexity and the fact that annotations only cover safety hints, the description should do considerably more.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 6 parameters and only 33% schema description coverage, the description carries the burden and largely fails: 'key' and 'value' are untyped empty schemas and are never explained, nor are 'database' and 'object_store' (beyond the phrase 'object store'). Only 'target_id' and 'browser_id' have schema descriptions. The description adds no meaning beyond the tool's name.

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 a specific verb ('Write') and resource ('a record into an IndexedDB object store'), which is enough to separate it from read-oriented siblings like storage.indexeddb.query or storage.indexeddb.describe. It stops short of explicitly naming any sibling as the alternative, so differentiation is implied by the write semantics rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no preconditions (e.g. database must exist or be opened), and no mention of the sibling read/clear/query tools that an agent should consider instead. The only hint of context is the parenthetical about running through the page's IndexedDB API.

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