Skip to main content
Glama

chrome_get_cookies

Retrieves cookies for the current page or specified URLs, enabling agents to inspect browser authentication and session state.

Instructions

Get cookies for the current page or specific URLs

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": "chrome_get_cookies"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsNoURLs to get cookies for
tabIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden of behavioral disclosure. "Get" implies a read, but nothing is said about whether cookie values (including httpOnly/session cookies) are returned, what permissions or auth are required, or how results are structured. For a tool that reads sensitive credential material, that is a notable omission.

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. The scope information appears immediately after the verb, which is exactly where it is needed.

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?

This is a simple two-parameter read tool with no output schema and no annotations, so the description does not need to be long. It covers the core invocation modes, and the remaining gap (return shape, tabId behavior) is modest for a tool of this complexity.

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?

Schema coverage is 50%. The description adds real meaning for the urls parameter by indicating that omitting it targets the current page, which the schema does not state. The tabId parameter, however, is undocumented in both the schema and the description, leaving an agent guessing how it interacts with urls.

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 uses a specific verb and resource ("Get cookies") and states the scope: "for the current page or specific URLs." That is enough to distinguish it from chrome_delete_cookies and other sibling tools without opening the schema, though it does not explicitly name the destructive counterpart.

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 phrase "current page or specific URLs" implies two usage modes: omit urls to read the active page's cookies, or supply urls for others. However, there is no explicit when-to-use statement, no mention of the delete alternative, and no note about permissions or prerequisites.

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