Skip to main content
Glama

get_cookies

Read-only

Retrieve cookies for the current browser context, optionally filtered by URL, to inspect each cookie's name, value, domain, and path.

Instructions

Get cookies for the current context (optionally filtered to url). Each cookie's name, value, domain and path are the site's, each between untrusted-content tags on one line.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_cookies"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly and open-world, so safety is covered. The description goes beyond them with two genuinely useful disclosures: the returned name/value/domain/path are the site's own data, and each is wrapped in untrusted-content tags on a single line — a prompt-injection warning the agent cannot infer from any structured field, especially with no output schema.

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?

Two sentences, zero preamble, with scope front-loaded before the return-value caveat. The second sentence is slightly compressed to the point of awkwardness ('are the site's, each between untrusted-content tags on one line') but it is dense rather than padded.

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 one-parameter read-only tool with no output schema, the definition covers scope, optional filtering, and the return shape including the untrusted-content wrapping. Minor gaps remain: behavior when no cookies match, and whether only the current page's cookies or the whole context's are returned.

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

Parameters4/5

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

The single 'url' property has no description in the schema (0% coverage), so the description carries the burden. It clarifies that url is an optional filter rather than a required target (matching default null), which is the key semantic an agent needs before calling.

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?

States a specific verb and resource (get cookies) plus the scope ('for the current context'), which distinguishes it from every sibling in the list — none of the page/tab/network helpers return cookie state. An agent can identify the operation without opening the schema.

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: an agent infers it should call this when it needs cookie names/values for the current page. There is no statement of when not to use it, no mention of prerequisites (e.g. that a page must be loaded, or that cookies for other domains require navigation first), and no alternatives offered.

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