Skip to main content
Glama
k-l-lambda

chrome-cookies-mcp

by k-l-lambda

get_cookies

Retrieve cookies for a domain from a running Chrome instance. Filter by name or path, and output in JSON, Netscape, or header format.

Instructions

Get cookies for a given domain from the running Chrome (via DevTools Protocol). Returns cookies whose domain equals or is a sub/parent-domain of the query, in the requested format. Chrome must be launched with --remote-debugging-port.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoOptional: only return the cookie with this exact name.
pathNoOptional: only return cookies with this exact path.
domainYesDomain or URL to fetch cookies for, e.g. "example.com", ".github.com", or "https://example.com/path".
formatNoOutput format: "netscape" (cookies.txt), "json" (full cookie objects), or "header" (Cookie: header value). Default "json".json
Behavior4/5

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

No annotations provided, so the description must disclose behavioral traits. It explains the domain matching logic (sub/parent-domain), format options, and the requirement for a specific Chrome launch mode. This provides sufficient behavioral context for a read operation.

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?

Two concise sentences, front-loaded with the core action and resource. No fluff, every sentence adds information.

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

Completeness2/5

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

No output schema exists, so the description should detail return values. It mentions returning cookies in a format but does not describe the structure of each format (e.g., what properties in JSON, how netscape format looks). This is a significant gap for a tool with multiple output formats.

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?

Schema coverage is 100%, so baseline is 3. The description adds value by explaining the domain matching behavior (sub/parent-domain) beyond the schema's simple description. It also clarifies the format options, enhancing understanding.

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 clearly states the action ('Get cookies'), the resource ('cookies from Chrome via DevTools Protocol'), and the domain constraint. It distinguishes from sibling tool 'list_domains' by focusing on cookie retrieval for a specific domain.

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

Usage Guidelines3/5

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

The description does not explicitly state when to use this tool versus alternatives. It mentions a prerequisite (Chrome with --remote-debugging-port) but lacks guidance on when not to use it or comparisons with sibling tools.

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/k-l-lambda/chrome-cookies-mcp'

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