Skip to main content
Glama
puppeteer-mcp-claude

puppeteer-mcp-claude

by jaenster

puppeteer_get_cookies

Retrieve cookies from a browser tab by page ID, optionally filtered by URLs, to inspect or reuse session data in Puppeteer automation.

Instructions

Get cookies from a tab.

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

Input Schema

NameRequiredDescriptionDefault
urlsNo
pageIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations provided, the description bears the full behavioral burden and discloses almost nothing. It does not say what happens when pageId is omitted (active tab? first tab?), whether the call fails if no browser is launched, or whether cookies are read-only versus session-affecting. The single safety-relevant fact, that it is a read operation, is inferable only from the verb.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short, front-loaded sentence with no filler or redundancy. The brevity is not achieved by padding, though it flirts with under-specification rather than tight editing.

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?

For a tool with two undocumented parameters, no annotations, and no output schema, the description omits the return shape (which cookie fields, format), default page targeting, and error behavior. What remains is only enough to guess at the tool's function, not enough to call it confidently.

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

Parameters2/5

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

Schema description coverage is 0%, so the two parameters (pageId and urls) are completely undocumented. The description hints at the tab dimension via "from a tab," but the urls array — presumably a filtering mechanism — is never explained, leaving a genuinely ambiguous parameter with no semantic guidance anywhere.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ("Get cookies") and a hint of scope ("from a tab"), so the operation is recognizable. However, it does not clarify what set of cookies is returned (all from the tab? only those matching given URLs?) nor differentiate itself from the sibling tools puppeteer_set_cookies and puppeteer_delete_cookies, which the name alone has to carry.

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 of any kind: no mention of when to prefer this over puppeteer_get_text or puppeteer_evaluate, and no stated prerequisites such as a launched browser or an open page. The agent must infer the context entirely.

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