Skip to main content
Glama

export_cookies

Exports a cookie jar as a Netscape cookie file compatible with curl --cookie-jar, or as a domain-filtered header string for session reuse.

Instructions

Export a cookie jar as a Netscape cookie file (compatible with curl --cookie-jar).

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": {
      "jar_id": "<jar_id>"
    },
    "name": "export_cookies"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNoFor 'header' format: domain to filter cookies for
formatNonetscape
jar_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

C2.8/5.0
Behavior2/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. It discloses the output artifact and its downstream compatibility, which is genuinely useful, but says nothing about whether the operation is read-only, what happens when jar_id is unknown, or how the 'header' format output looks.

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?

A single tight sentence with the artifact and the compatibility target front-loaded. Nothing is wasted or buried.

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?

With no annotations, no output schema, and an enum-bearing format parameter that the description only half covers, the definition leaves too much open. An agent cannot tell what 'header' returns or what a missing jar produces.

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

Parameters2/5

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

Schema description coverage is only 33% and jar_id is entirely undocumented in both places. The description explains the netscape format but never mentions the 'header' format that makes the domain filter meaningful, so at least two of three parameters gain little or no meaning.

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?

Specific verb plus resource plus output artifact: 'Export a cookie jar as a Netscape cookie file'. It also adds the compatibility marker (curl --cookie-jar). However, it only names one of the two formats the schema supports, so an agent reading only the description would not know 'header' output exists.

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 when-to-use guidance and no routing to alternatives such as export_as_curl or clear_cookies, despite several siblings in the same export family. The agent must infer that this is the cookie-specific export path.

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