Skip to main content
Glama
CapMonsterCloud

capmonster-mcp-patchright

Official

browser_localstorage_set

Set a localStorage key-value pair on the active page to modify site state, manage sessions, or bypass anti-bot mechanisms during automated browsing.

Instructions

Set a localStorage item on the active page's origin.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It does state that setting is scoped to the active page's origin, which is useful, but it fails to mention overwrite behavior, persistence, return values, or potential side effects.

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?

A single, front-loaded sentence with no filler. Every word earns its place and the core operation and scope are immediately visible.

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 simple two-parameter setter, the description plus input schema covers the essential invocation. However, without annotations or an output schema, and with no note about overwriting existing items or return behavior, it is minimally complete rather than fully contextualized.

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 description coverage is 0%, and the description adds no meaning to the 'key' and 'value' parameters beyond what their names imply. It does not explain storage type coercion or any constraints on keys/values.

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 uses a specific verb ('Set') and resource ('localStorage item') and scopes it to 'the active page's origin.' This clearly differentiates it from storage siblings like browser_sessionstorage_set, browser_cookie_set, and localStorage read/delete operations.

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?

The description provides no guidance on when to use this tool versus alternatives such as browser_sessionstorage_set, browser_cookie_set, or browser_storage_save. It also does not mention when not to use it or any prerequisites.

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