Skip to main content
Glama

Manage Browser Cookies

gpm_browser_cookies

Read, add, update, or clear cookies for the connected GPM browser profile to manage session state and authentication.

Instructions

Đọc (get), thêm/cập nhật (set), hoặc xoá (clear) cookies của profile trình duyệt đang kết nối.

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": {
      "action": "<action>"
    },
    "name": "gpm_browser_cookies"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsNoDùng cho action="get": lọc cookie theo danh sách URL
actionYesget | set | clear
cookiesNoDùng cho action="set": danh sách cookie cần thêm
profile_idNoID của profile GPM đang kết nối CDP (có thể bỏ trống nếu chỉ có 1 profile đang kết nối)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does the most important part by declaring the mutating nature of set and clear versus the read-only get, so an agent cannot mistake this for a pure read tool. It does not disclose whether clear is scoped by urls or wipes all cookies, whether set overwrites existing same-name cookies, or whether changes persist to the profile on disk.

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?

A single well-formed sentence with the three operations front-loaded and no filler. It is appropriately sized for a 4-parameter tool, though the inline Vietnamese/English action names add slight visual noise rather than structure.

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 4-parameter, no-annotation, no-output-schema tool, the definition covers the action taxonomy but omits what get returns (cookie shape, filtering semantics) and what clear actually destroys. These are the details an agent most needs before invoking a destructive action, so the definition is adequate but not complete.

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 schema itself already states that urls applies to action="get" and cookies to action="set", so the description adds essentially no parameter meaning beyond it. The baseline of 3 applies; the description does nothing to compensate for the genuine gap it leaves, namely which parameters apply to clear.

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 states a specific resource (cookies of the connected browser profile) and enumerates the three operations in a one-to-one mapping with the action enum: get = read, set = add/update, clear = delete. This is more specific than the title 'Manage Browser Cookies' and no sibling tool touches cookies, so it is clearly differentiated. It stops short of 5 only because scope details (per-profile vs global cookie store) are left implicit.

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 parenthetical annotations (get/set/clear) imply which action to pick for a given goal, which is genuinely useful routing guidance. However, there is no explicit statement of prerequisites (a CDP-connected profile), no when-not guidance, and no mention of how the actions interact with the sibling browser tools such as gpm_browser_navigate.

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