Skip to main content
Glama

get_cookie_jar

Retrieve all cookies stored in a specified cookie jar by jar ID. Use it to inspect session cookies and authentication state before sending requests or debugging API calls.

Instructions

Get all cookies in a 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": "get_cookie_jar"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 provided, so the description carries the full burden and it discloses almost nothing: it does not state that the operation is read-only, what happens when jar_id does not exist, whether results are paginated, or what the response looks like. 'Get all' implies an unbounded result set without any note on size or ordering.

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 single sentence is front-loaded and free of padding, but its brevity comes at the cost of under-specification rather than economy; there is no structure for parameter meaning or behavior.

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 tool with no annotations, no output schema, and an undocumented required parameter, the definition leaves the agent guessing about input format and return shape. It is not adequate for correct invocation without trial and error.

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?

There is exactly one required parameter, jar_id, with 0% schema description coverage, and the description never mentions it — not its format, whether it is an opaque ID or a name, or how to obtain one (presumably list_cookie_jars). With coverage this low the description should compensate and does not.

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 states a specific verb and resource — 'Get all cookies in a cookie jar' — so an agent knows this is a read of a jar's contents. It does not, however, distinguish itself from siblings like list_cookie_jars, export_cookies, or clear_cookies, which all operate on the same cookie domain.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: the name and the word 'jar' suggest fetching cookies for a specific jar, but there is no explicit when-to-use, no mention of export_cookies for serialization, and no note that list_cookie_jars is the tool for discovering jar IDs.

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