Skip to main content
Glama

chrome_set_cookie

Set a cookie in a running Chrome instance by specifying its name, value, and optional domain, path, URL, or tab, including Secure and HttpOnly flags.

Instructions

Set a cookie

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>",
      "value": "<value>"
    },
    "name": "chrome_set_cookie"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
nameYes
pathNo
tabIdNo
valueYes
domainNo
secureNo
httpOnlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

D1.5/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full burden and provides nothing. It does not disclose whether the cookie is scoped to a tab, domain, or the whole browser session; whether an existing cookie with the same name is overwritten; whether the write persists across sessions; or what errors occur on invalid domains.

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

Conciseness2/5

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

Being four words long, it is not verbose but severely under-specified rather than concise. There is no structure to speak of and nothing front-loaded because nothing of substance is present.

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

Completeness1/5

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

For an eight-parameter state-mutating browser tool with no annotations and no output schema, the description is wholly inadequate. An agent cannot reliably construct a correct call from it and would have to guess at domain/url relationships and cookie scoping.

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

Parameters1/5

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

Eight parameters with 0% schema description coverage and no parameter explanation in the description. Critical semantics are entirely undocumented: whether url and domain are alternatives or both required, how tabId interacts with url, and what defaults apply to path, secure, and httpOnly.

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

Purpose2/5

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

"Set a cookie" restates the tool name chrome_set_cookie almost verbatim, adding no scope, target, or mechanism beyond the identifier. It is a tautology rather than a specific verb-plus-resource statement, though the intent is not misleading.

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 guidance on when to use this versus chrome_get_cookies, chrome_delete_cookies, or chrome_clear_storage, and no mention of prerequisites such as needing an active tab or a valid URL. The agent must infer the entire usage context.

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