Skip to main content
Glama

browser_get_cookie_by_name

Retrieves a specific browser cookie by its name through Selenium, so you can inspect session or authentication values during web automation.

Instructions

Get a cookie by name

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>"
    },
    "name": "browser_get_cookie_by_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the cookie to get

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed2 schema fields changedv1.0.0
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. "Get" implies a read, but the description does not say what happens when the named cookie does not exist (error vs. empty), what the return structure looks like, or whether it reads from the current page's document context versus the browser's cookie store.

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

Conciseness3/5

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

Six words with zero filler and the resource front-loaded, but the brevity is under-specification rather than economy — nothing is wasted because there is almost nothing present.

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

Completeness3/5

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

For a one-parameter read tool with a fully documented schema and no output schema, the essentials are technically present. However, the absence of any note on not-found behavior or return shape leaves an agent unable to predict the result of a miss.

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 description coverage is 100% and the single parameter is already documented as "Name of the cookie to get", so the schema does the work. The description adds no extra meaning such as case sensitivity, exact-match requirements, or domain scoping.

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?

"Get a cookie by name" names a specific verb (get) and resource (cookie) with a scoping qualifier (by name) that distinguishes it from the plural browser_get_cookies and from browser_add_cookie_by_name. It stops short of explicitly routing the agent away from those siblings, so it is clear but not fully differentiated within the description itself.

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 at all — no mention of browser_get_cookies as the alternative when the cookie name is unknown, and no stated prerequisites such as being on the relevant domain. The only distinction is implicit in the phrase "by name".

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