Skip to main content
Glama
Browser MCP Server

Browser MCP Server

clear_cookies

Removes all cookies from the active browser context to reset session state and prevent cookie-based tracking or stale data.

Instructions

Clear all cookies in the browser context.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "clear_cookies"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden. It does add one useful scope detail — that ALL cookies are removed rather than a filtered subset — but it says nothing about irreversibility, whether the current session/logged-in state is lost, or whether a live browser connection is required before calling.

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 zero filler or redundant restatement of the tool name. It is appropriately sized for a zero-argument operation.

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 tool is simple (no params, no nested objects, no output schema), so the definition is nearly sufficient. However, because annotations are absent, the description should have covered the destructive/irreversible nature and any required browser-session precondition, which it omits.

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

Parameters4/5

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

The tool takes zero parameters, so the baseline of 4 applies; there is no parameter semantics to supplement and the description does not need to explain any arguments.

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?

The description states a specific verb and resource ("Clear all cookies") and scopes it to "the browser context," so an agent knows exactly what the call does without opening the schema. It does not explicitly name siblings like get_cookies or set_cookies, but the destructive verb-plus-resource already separates it from read/write cookie tools.

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 prerequisites (e.g., requires an attached/connected browser), and no mention of the related siblings such as clear_storage or clear_permissions that an agent might pick instead. The context of use (resetting state after login flows, test isolation) must be inferred entirely.

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