Skip to main content
Glama

get_cookies

Read-only

Retrieves browser context cookies as JSON, optionally filtered by domain substring, for session inspection or reuse.

Instructions

Cookies of the browser context as JSON (optionally filtered by domain substring).

Input Schema

NameRequiredDescriptionDefault
url_filterNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds that results are returned as JSON and can be filtered, but says nothing about pagination, cookie volume, or what happens if no context exists.

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 efficient sentence that front-loads the resource and appends the filter behavior. Nothing 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?

An output schema exists, so return values need no explanation, and annotations cover safety. The only remaining gap is the url_filter versus domain-substring ambiguity, which slightly undercuts a full picture for a simple read tool.

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?

Only one parameter with 0% schema coverage, so the description must carry meaning, and 'optionally filtered by domain substring' does explain the filter's intent. However, it describes a 'domain substring' while the parameter is named url_filter, a mismatch that could mislead about what is actually matched.

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?

States a clear verb (get) and resource (cookies of the browser context) plus return format (JSON), which distinguishes it from set_cookies and clear_cookies. It does not explicitly name those siblings, but the read nature 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 Guidelines2/5

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

There is no explicit guidance on when to use this versus set_cookies, clear_cookies, or save_session, and no stated preconditions (e.g., an active browser context). Usage is only implied by the verb.

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