Skip to main content
Glama
andresolbach

nodriver-mcp-server

Clear cookies

clear_cookies
DestructiveIdempotent

Delete all browser cookies at once to reset site state, log out globally, and test first-time visitor flows. Use with load_session to restore prior browsing data when needed.

Instructions

Delete every cookie in the browser.

Browser-wide, not per site and not per tab — this logs you out of everything at once, with no undo. Restore a previous state with load_session if you have one saved.

Useful for testing a first-time-visitor flow or resetting a consent banner decision. localStorage is left untouched, so sites that keep state there may still recognise you.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
browserNoWhich browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name.default

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.0
    • addedInput schema / properties / browser
      Added value: +{
      +  "default": "default",
      +  "description": "Which browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name.",
      +  "type": "string"
      +}
  2. First observedv1.7.2

TDQS

A4.5/5.0
Behavior5/5

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

Even though annotations already flag destructiveHint=true, the description adds meaningful behavioral detail beyond the structured data: it has no undo, it logs the user out everywhere, localStorage is left untouched, and sites may still recognize the user because of that. This gives the agent a much richer picture of the side effects than the annotations alone.

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?

The description is compact and well-organized: the core action comes first, followed by scope and consequences, then use cases, then a caveat. Every sentence adds value and there is no filler or redundant restating of the tool name.

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

Completeness5/5

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

For a single-parameter destructive action with an output schema, the description covers everything an agent needs: what is deleted, the scope, irreversibility, restoration path, intended use cases, and a relevant side-effect caveat. The output schema is present, so describing the return value would be redundant.

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

Parameters3/5

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

With schema description coverage at 100%, the single 'browser' parameter is fully documented in the schema, including its default and per-agent semantics. The description does not add parameter-specific information, but it does not need to. Baseline 3 is appropriate because the schema does the heavy lifting.

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 opens with a specific verb and object: 'Delete every cookie in the browser.' It goes further to clarify the exact scope ('Browser-wide, not per site and not per tab'), which clearly distinguishes this from per-site cookie tools like get_cookies and set_cookie. The phrase 'logs you out of everything' reinforces the practical effect without ambiguity.

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

Usage Guidelines4/5

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

The description gives concrete use cases: 'testing a first-time-visitor flow or resetting a consent banner decision.' It also points to an alternative restoration path with load_session. It stops short of saying when not to use this tool, but the guidance is clear enough for an agent to decide.

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