Skip to main content
Glama
camoufox-reverse-mcp

camoufox-reverse-mcp

cookies

Manage browser HTTP state: retrieve, build Cookie headers, set, or delete entries using URL, domain, and name filters for Playwright automation.

Instructions

Cookie management (v0.9.0 unified).

Replaces get_cookies / set_cookies / delete_cookies.

Args: action: "get" — return cookies (optionally filtered by url, domain, and/or name) "header" — build a ready-to-use Cookie: header value (deduplicated by name) "set" — set cookies (requires cookies_list: [{name, value, domain, ...}]) "delete" — delete cookies (filter by name and/or domain; no filter = clear all) domain: Host or parent domain for get/header/delete (boundary match, includes subdomains). With name, both filters must match. No filters on delete clears all cookies. cookies_list: List of cookie dicts for "set". name: Optional exact cookie name filter for get/header/delete. url: Optional request URL for get/header so Playwright applies RFC 6265 domain, path, Secure, and expiry matching. When action="header" is called without url or domain on an http(s) page, defaults to the active page URL. output_file: For action="header", write the Cookie header to this file (mode 0600) and omit the raw header string from the inline tool response. overwrite: Allow replacing an existing output_file.

Returns: For "get": list of cookie dicts. For "header": {"action", "count", "names", "header", "domain", "url"} plus "output": {path, bytes, sha256, ...} (with "header": None) when output_file is used. For "set"/"delete": dict with status and count.

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": "cookies"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
nameNo
actionYes
domainNo
overwriteNo
output_fileNo
cookies_listNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.13.1
    • addedInput schema / properties / output_file
      Added value: +{
      +  "title": "Output File",
      +  "type": "string"
      +}
    • addedInput schema / properties / overwrite
      Added value: +{
      +  "default": false,
      +  "title": "Overwrite",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / url
      Added value: +{
      +  "title": "Url",
      +  "type": "string"
      +}
  2. Changed10 schema fields changedv1.1.1
    • removedInput schema / properties / cookies_list / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / cookies_list / default
      Removed value: -null
    • addedInput schema / properties / cookies_list / items
      Added value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
    • addedInput schema / properties / cookies_list / type
      Added value: +"array"
    • removedInput schema / properties / domain / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / domain / default
      Removed value: -null
    • addedInput schema / properties / domain / type
      Added value: +"string"
    • removedInput schema / properties / name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / name / default
      Removed value: -null
    • addedInput schema / properties / name / type
      Added value: +"string"
  3. Addedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it warns that 'delete' with no filters clears all cookies, notes output_file is written with mode 0600 and the raw header is omitted from the inline response, and explains overwrite semantics. It does not say whether 'set' persists to the live browser context or affects subsequent page loads, and no permission/auth constraints are mentioned, so it falls short of a 5.

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?

Content is front-loaded with the identity of the tool, then organized into action list, params, and returns — easy to scan. The docstring-style 'Args:'/'Returns:' formatting adds some vertical noise, and the Returns block partially duplicates the existing output schema, but no sentence is truly wasted.

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

Completeness4/5

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

For a 7-parameter, multi-mode tool this covers each mode's inputs, filter interaction rules, and the destructive no-filter delete case, which is what an agent most needs. The main residual gap is behavioral: whether 'set' affects the active browser session and whether 'get' returns session vs persistent cookies. The Returns section is largely redundant given an output schema exists.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it documents all seven parameters with meaning beyond the schema's bare titles. It adds real semantics: domain is a boundary match including subdomains and combines with name as an AND filter, url triggers RFC 6265 domain/path/Secure/expiry matching, and cookies_list expects [{name, value, domain, ...}].

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

Purpose5/5

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

The first line states a specific resource (cookies) and versioned scope, and explicitly says it replaces get_cookies / set_cookies / delete_cookies, which tells an agent this is the single entry point for cookie work. The action enum is then enumerated so each mode's verb+resource 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear per-action context: 'get' for reading, 'header' for building a Cookie header, 'set' requires cookies_list, 'delete' filters by name/domain. It also explains the header action's default to the active page URL, which is genuine usage guidance. It stops short of explicitly excluding sibling tools like get_storage, but the action-level routing is strong.

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