Skip to main content
Glama

check_session_cookies

Inspect Set-Cookie flags (HttpOnly, SameSite, Secure) on a URL's response to detect missing protections that expose session cookies to XSS token theft or CSRF.

Instructions

Inspect Set-Cookie flags on the response: HttpOnly, SameSite, Secure. Flags missing on session cookies enable XSS token theft and CSRF.

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": {
      "url": "<url>"
    },
    "name": "check_session_cookies"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It adds real value by explaining what is evaluated and why missing flags matter, but it omits operational facts an agent needs: whether the tool performs a live outbound request to the target, whether redirects or auth are followed, and whether any state or logging is involved.

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 short sentences with the inspection target front-loaded and the security consequence second. Nothing is padded, though the second sentence is a fragment that reads more like a note than a complete guideline.

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?

There is no output schema, no annotations, and no parameter documentation, so the description is the only source of truth. It never says what comes back (per-cookie flag table, pass/fail verdict, raw headers) or how findings are reported, which is a substantial gap for a security-check tool.

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 0% for the single required 'url' parameter, and the description never refers to it. A reader must infer that 'url' is the endpoint whose response is fetched and inspected; scheme, path, and whether credentials are included are all unstated.

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 names a specific verb ('Inspect') and resource ('Set-Cookie flags') and enumerates exactly what is checked: HttpOnly, SameSite, Secure. That is enough to distinguish it from siblings like check_security_headers or check_csrf_origin_guard, though the phrase 'on the response' leaves implicit that the tool actually fetches the given url.

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 when-to-use or when-not-to-use guidance and no named alternative among the sibling checks. The risk rationale ('enable XSS token theft and CSRF') hints at the use case but never states the condition that should route an agent here versus to check_security_headers.

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