Skip to main content
Glama

cookieguard_scan

Destructive

Fetches a configured HTTP(S) URL and audits Set-Cookie headers against a fixed security policy, returning passed, failed, or incomplete results without exposing raw cookie values.

Instructions

GET a URL on a configured origin and audit Set-Cookie headers with the fixed policy. Returns passed, failed, or incomplete (exitCode 0/1/2). Makes network requests; use authorized test endpoints. No login or browser cookies are collected. Same as cookieguard_audit with url.

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

Input Schema

NameRequiredDescriptionDefault
urlYesHTTP(S) URL on a configured origin, without credentials, query, or fragment. Do not include secrets in the path.

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.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is partly carried structurally; the description still adds meaningful context by stating that network requests are made, that no login or browser cookies are collected, and by enumerating the three outcome states with exitCodes 0/1/2. It never contradicts the destructive/openWorld hints, and the 'use authorized test endpoints' warning reinforces them.

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?

Five short sentences, front-loaded with the action and return contract, then the network-safety caveat, then the privacy note. The trailing sibling comparison is the only weak sentence, since it restates rather than clarifies, but overall there is very little waste.

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/scan tool with an output schema present, the description covers action, preconditions, network side effects, privacy, and return states. Return-value explanation is arguably redundant given the output schema, and the audit-vs-scan relationship to siblings remains the one under-explained area.

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 coverage is 100% and the url property description already specifies HTTP(S), configured origin, and the no-credentials/query/fragment restriction. The description repeats the configured-origin constraint without adding format, length, or error-handling semantics beyond the schema, so the baseline 3 holds.

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 first sentence names a specific verb (GET a URL) and resource (Set-Cookie headers) plus the policy being applied, so the agent knows this is a cookie-header audit. The closing note 'Same as cookieguard_audit with url' gestures at a sibling but does not explain how the two differ, leaving differentiation only partially resolved.

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?

'Makes network requests; use authorized test endpoints' gives a real precondition for use, and 'on a configured origin' restricts the target surface. However, there is no explicit when-to-use versus cookieguard_audit or cookieguard_policy, and the equivalence claim ('Same as ... with url') actually muddies which tool to pick rather than routing the agent.

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