Skip to main content
Glama

storage.set_cookie

Sets a browser cookie for a specified URL or domain so Chromium stores it in the correct site context.

Instructions

Set a cookie. Provide url or domain so Chromium knows where it belongs.

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": "storage.set_cookie"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
nameYes
pathNo
valueYes
domainNo
secureNo
expiresNoUnix seconds.
http_onlyNo
same_siteNo
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so the mutation and open-world nature is covered. The description adds one genuine behavioral fact beyond them: Chromium needs url or domain to place the cookie, i.e. a scope resolution rule. It says nothing about overwriting existing cookies, persistence across sessions, or permission/browser-attachment requirements.

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?

Two short sentences with the core action first and the placement constraint second; no padding or restatement of the title.

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 10-parameter mutation tool with 20% schema coverage and no output schema, the description addresses only the url/domain scoping question. It gives no account of required fields, same_site/secure/expiry semantics, or what happens on duplicate cookies, leaving much of the call surface unexplained.

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 only 20% of 10 parameters, so the description must compensate. It adds real meaning for url/domain by implying that at least one is needed for placement (the schema marks both optional), but it leaves name/value, path, secure, http_only, and same_site undefined in both places.

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 gives a concrete verb+resource ("Set a cookie") that separates it from siblings like storage.clear_cookies, storage.list_cookies, or storage.set. It does not explicitly name an alternative, so it loses a point on sibling differentiation, but the purpose is unambiguous.

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 storage.set, storage.import, or the clear/delete cookie siblings, and no mention of prerequisites or when-not-to-use. The only conditional hint is the requirement to supply url or domain, which is framed as an instruction rather than a usage rule.

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

Deploy Server

Other Tools