# browser_set_cookie

A write tool on the Looking Glass MCP server.

Agent View of the PolicyLayer registry record for `browser_set_cookie`. HTML page: https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-set-cookie

## Facts

- Tool: `browser_set_cookie`
- Server: Looking Glass (`looking-glass-mcp`) — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp.md
- Install: `npx -y looking-glass-mcp`
- Homepage: https://github.com/Sahib-Sawhney-WH/LookingGlass
- Risk category: Write (Medium risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 4 (2 required)
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | yes | Cookie name |
| `path` | string | no | Cookie path (default: /) |
| `value` | string | yes | Cookie value |
| `domain` | string | no | Cookie domain |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "browser_set_cookie",
    "arguments": {
      "name": "<name>",
      "value": "<value>"
    }
  }
}
```

## Why browser_set_cookie is rated Medium

Setting cookies modifies client-side state that persists across browser sessions and can affect authentication, tracking, and application behavior. This is a reversible write operation (cookies can be deleted/modified later), not read-only. It does not delete data (not Destructive), execute arbitrary code (not Execute in the dangerous sense), or move money (not Financial).

From the tool's own definition: "Tool name 'browser_set_cookie' indicates modification of browser cookies. The name contains 'set', a write operation. Description is empty, which reduces confidence."

Risk signals: Accepts file system path (path)

## Use case

AI agents use browser_set_cookie to create or update resources in Looking Glass, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Looking Glass environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Looking Glass:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "browser_set_cookie": {
      "limits": [
        {
          "counter": "browser_set_cookie_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Looking Glass (70)

- `browser_clean_slate` — Destructive — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-clean-slate.md
- `browser_clear_history` — Destructive — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-clear-history.md
- `browser_clear_mocks` — Destructive — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-clear-mocks.md
- `browser_clear_storage` — Destructive — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-clear-storage.md
- `browser_close` — Destructive — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-close.md
- `session_end` — Destructive — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/session-end.md
- `test_chaos_clear` — Destructive — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/test-chaos-clear.md
- `vault_delete` — Destructive — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/vault-delete.md
- `browser_click` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-click.md
- `browser_drag` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-drag.md
- `browser_evaluate` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-evaluate.md
- `browser_explore` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-explore.md
- `browser_fill_and_submit` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-fill-and-submit.md
- `browser_go` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-go.md
- `browser_go_back` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-go-back.md
- `browser_go_forward` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-go-forward.md
- `browser_hover` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-hover.md
- `browser_login` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-login.md
- `browser_mock_route` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-mock-route.md
- `browser_navigate` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-navigate.md
- `browser_performance_audit` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-performance-audit.md
- `browser_press_key` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-press-key.md
- `browser_recover` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-recover.md
- `browser_resolve_element` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-resolve-element.md
- `browser_scroll` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-scroll.md
- `browser_select_option` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-select-option.md
- `browser_smart_click` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-smart-click.md
- `browser_tab_new` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-tab-new.md
- `browser_tab_select` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-tab-select.md
- `browser_type` — Execute — https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp/browser-type.md
- …and 40 more: https://policylayer.com/tools/io-github-sahib-sawhney-wh-looking-glass-mcp.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=io-github-sahib-sawhney-wh-looking-glass-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/io-github-sahib-sawhney-wh-looking-glass-mcp
