Skip to main content
Glama

browser_set_cookie

Set a browser cookie for a given session ID with specified name, value, and optional attributes like domain, path, secure, HttpOnly, and expiry for session management.

Instructions

Set a browser cookie.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesThe session ID
nameYesCookie name
valueYesCookie value
domainNoCookie domain (optional, uses current domain if empty)
pathNoCookie path/
secureNoSecure flag
http_onlyNoHttpOnly flag
expiryNoExpiry timestamp (0 for session cookie)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must carry the full burden of behavioral disclosure. It only states the basic action without mentioning side effects (e.g., overwriting existing cookies), security implications, or whether the session must be valid. This is insufficient for an agent to understand the tool's behavior.

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?

The description is extremely concise (one short sentence), but lacks any structure such as bullet points, examples, or notes. While brevity is valued, it sacrifices clarity and completeness. It earns a middle score.

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?

The tool is simple, but the description omits important context: it does not mention that a valid session_id is required, what happens on success/failure, or relationships with other cookie tools. An output schema exists but is not referenced. The description is incomplete for an agent to use effectively.

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?

Input schema coverage is 100%, so the schema already documents all 8 parameters with descriptions. The description adds no extra meaning beyond the schema. Baseline 3 is appropriate given the high coverage.

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 'Set a browser cookie' clearly states the action and resource. It distinguishes from sibling tools like browser_get_cookies and browser_delete_cookies by specifying 'set'. However, it lacks additional context that could further clarify the tool's role.

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?

No guidance on when to use this tool versus alternatives, such as when a cookie already exists (it will be overwritten) or prerequisites like having an active browser session. The description offers no usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/quyansiyuanwang/oh-my-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server