Skip to main content
Glama

cookieguard_audit

Destructive

Audit authentication-cookie security by checking a URL's Set-Cookie headers or re-evaluating a sanitized report. Returns pass/fail/incomplete with rule IDs and fixes, never exposing cookie values.

Instructions

Audit authentication-cookie configuration with the fixed startup policy. Pass exactly one of: url (GET one URL on a configured origin and audit its Set-Cookie headers; makes network requests, sends no cookies or credentials) or evidenceFile (re-evaluate a sanitized CookieGuard JSON report that your own Browser Use, Playwright, or CLI run wrote to the configured evidence directory). Returns passed, failed, or incomplete (exitCode 0/1/2) with rule IDs and fixes, never cookie values.

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": "cookieguard_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoHTTP(S) URL on a configured origin, without credentials, query, or fragment. Do not include secrets in the path.
evidenceFileNoPlain file name such as login-report.json inside the configured evidence directory. No paths.

Output Schema

NameRequiredDescriptionDefault
errorYes
issuesYes
statusYes
targetYes
summaryYes
exitCodeYes
findingsYes
provenanceNo
limitationsYes
schemaVersionYes
omittedFindingsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • changedOutput schema / properties / findings / items / properties / evidenceSource / description
      Previous value: -"header = server Set-Cookie declaration; browser = cookie-store observation"New value: +"header = server Set-Cookie declaration; browser = cookie-store observation; probe = session replay; storage = Web Storage entry"
    • changedOutput schema / properties / findings / items / properties / evidenceSource / enum
      Previous value: -[
      -  "header",
      -  "browser",
      -  "fixture",
      -  "legacy"
      -]New value: +[
      +  "header",
      +  "browser",
      +  "fixture",
      +  "legacy",
      +  "probe",
      +  "storage"
      +]
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Adds real context beyond the annotations: it discloses that the url mode makes network requests but sends no cookies or credentials, and that cookie values are never returned. However, the annotations declare destructiveHint=true and readOnlyHint=false, and the description never explains what is destructive or what gets mutated (policy/state writes?), leaving the most consequential trait undisclosed.

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?

Front-loaded with the purpose, then the two modes, then the return contract; every clause carries information. It is dense with parentheticals and slightly long, but no sentence is filler.

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?

Covers both input modes, the network-side effects, the input-mutual-exclusion rule, and the return contract (passed/failed/incomplete with exit codes, rule IDs and fixes) despite an output schema existing. The only gap is unexplained references to the "fixed startup policy", "configured origin" and "configured evidence directory" — configuration the agent must locate elsewhere.

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?

Schema coverage is 100%, so baseline is 3, and the description earns more by explaining intent: url must be on a configured origin, and evidenceFile must be a plain file name produced by the caller's own tooling inside the configured evidence directory. Those constraints add meaning beyond the schema's maxLength/minLength rules.

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?

Names a specific verb and resource: "Audit authentication-cookie configuration with the fixed startup policy." An agent immediately knows it evaluates Set-Cookie/auth cookie setup, but the description never names a sibling (cookieguard_scan, cookieguard_explain) to sharpen the boundary, so differentiation is left to inference.

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?

Explicitly states the mutual-exclusivity rule ("Pass exactly one of") and gives the selection condition for each mode: url for a live GET against a configured origin, evidenceFile for re-evaluating a report your own browser/Playwright/CLI run produced. It does not say when to prefer this over cookieguard_scan or cookieguard_explain, so it stops short of full when/when-not guidance.

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