Skip to main content
Glama

get_cookies

Read all cookies or a single cookie by name from the current browser page, including httpOnly ones. Use it to verify login session cookies or copy a cookie into another session.

Instructions

Read the cookies the browser holds for the current page: all of them, or one by name. Includes httpOnly cookies that page JavaScript cannot see. Returns each cookie's name, value, domain, path, expiry, and flags. Useful to check that a login created a session cookie, or to copy one into another session with add_cookie.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoName of one cookie to read, e.g. 'session_id'. Omit to read all cookies for the current page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / name / description
      Added value: +"Name of one cookie to read, e.g. 'session_id'. Omit to read all cookies for the current page."
  2. First observedv0.1.2

TDQS

A4.2/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 discloses that read includes httpOnly cookies invisible to page JavaScript, and enumerates the returned fields (name, value, domain, path, expiry, flags). Read-only nature is implied but the safety profile is not explicitly declared.

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?

Three tightly packed sentences, front-loaded with the operation and scope, then capability disclosure, then use cases. No filler; every sentence earns its place.

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 single-parameter read tool with no output schema, it covers scope, return values, and motivation adequately. Only the explicit read-only/safety signal is left to inference, which is minor given the 'read' framing.

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?

Schema description coverage is 100%, so the schema already documents the sole 'name' parameter including the omit-to-read-all behavior and an example. The description restates this dual mode, adding little beyond the schema, so baseline 3 is appropriate.

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 (read) and resource (cookies) with clear scope ('the current page') and dual mode ('all of them, or one by name'). It is immediately distinguishable from siblings add_cookie and delete_cookie.

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?

Gives concrete use cases ('check that a login created a session cookie, or to copy one into another session with add_cookie') and routes to the add_cookie alternative. Stops short of stating when-not to use it, but the context is clear.

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