js_set_local_storage
Set a localStorage key-value pair to persist data in the browser for automation tasks.
Instructions
Set a localStorage value
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Storage key | |
| value | Yes | Storage value |
Set a localStorage key-value pair to persist data in the browser for automation tasks.
Set a localStorage value
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Storage key | |
| value | Yes | Storage value |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided. The description does not disclose that this modifies browser state, persists data, or any potential side effects. For a write operation, more behavioral context (e.g., persistence, quotas) is expected.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single concise sentence but is too minimal; it conveys the basic function but lacks detail that would make it more useful. It is not verbose but also not sufficiently informative.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple but the description lacks context about use cases, persistence of localStorage, and relationship to sibling storage tools. Without output schema or annotations, more detail is needed for completeness.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with descriptions for key and value. The description adds no extra semantic meaning beyond 'key' and 'value' already in the schema. Baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description states 'Set a localStorage value' which clearly indicates the action (set) and resource (localStorage value). It is specific enough to differentiate from sibling tool js_get_local_storage. However, it could be more precise about the nature of localStorage (e.g., browser storage).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives like session storage or cookies. Sibling tools include js_get_local_storage and js_get_session_storage, but the description does not clarify when to choose this tool.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/D4D25A/PyPen'
If you have feedback or need assistance with the MCP directory API, please join our Discord server