Skip to main content
Glama
Lokii0911
by Lokii0911

delete_cookies

Delete all cookies in the browser to reset sessions, clear login states, and ensure a clean environment for testing or automation.

Instructions

Delete all browser cookies.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual implementation: acquires the thread lock, calls Selenium's delete_all_cookies() on the WebDriver, and returns {'deleted': True}.
    def delete_cookies(self) -> dict[str, bool]:
        with self._lock:
            self._require_driver().delete_all_cookies()
            return {"deleted": True}
  • The MCP tool registration: decorated with @mcp.tool(), defines the tool 'delete_cookies' and delegates to browser.delete_cookies via _run().
    @mcp.tool()
    def delete_cookies() -> dict[str, bool]:
        """Delete all browser cookies."""
        return _run("delete_cookies", browser.delete_cookies)
Behavior3/5

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

Description states destructive action (delete) which implies non-read-only behavior; without annotations, this is minimal but adequate. No mention of side effects or requirements.

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?

Single sentence, zero waste, immediately states action and scope.

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

Completeness4/5

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

Adequate for a parameterless tool with output schema; could mention output behavior or lack of return value but still minimally complete.

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?

No parameters; schema coverage 100% makes description unnecessary for parameter semantics. Does not add extra meaning but not needed.

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?

States specific verb 'Delete' and resource 'all browser cookies', clearly distinguishing from sibling tools like add_cookie and list_cookies.

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?

No usage guidelines provided; agent receives no information about when to use this tool versus alternatives like browser_reset or individual cookie management.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Lokii0911/SeleniumMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server