Skip to main content
Glama

storage.indexeddb.clear

Clear all records from a specified IndexedDB object store in a browser page to reset or free its stored data.

Instructions

Empty an IndexedDB object store.

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

Input Schema

NameRequiredDescriptionDefault
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 declare readOnlyHint=false and openWorldHint=true, so the mutating nature is already known. The word 'Empty' usefully distinguishes removing all records while keeping the store, but the description says nothing about irreversibility, permissions, or behavior on a missing or busy store.

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 short sentence with the key noun phrase front-loaded and no wasted words. It is arguably too terse for a destructive operation, but structurally it is clean.

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 destructive, open-world mutation with four parameters, half of them undescribed and no output schema, the description is far too thin. An agent gets no data-loss warning and no explanation of the required database/object_store arguments.

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?

Schema coverage is only 50%: target_id and browser_id are documented in the schema, but database and object_store are undocumented in both places. The description adds no parameter meaning, leaving two required parameters unexplained.

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 ('Empty') and resource ('IndexedDB object store'), which separates it from storage.indexeddb.delete_database and storage.indexeddb.query. It offers no explicit differentiation from nearby siblings such as storage.clear or storage.clear_origin, so it falls short of a 5.

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 guidance on when to use this versus deleting the whole database, clearing a cache, or storage.clear. No prerequisites, no note on required handles, and no indication of what happens when the object store does not exist.

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