Skip to main content
Glama

cookieguard_explain

Read-onlyIdempotent

Explains what a CookieGuard rule ID, incomplete reason, error code, or status means, when it is confirmed versus needs review, and how to fix it.

Instructions

Explain a CookieGuard rule ID (CG001-CG009), incomplete reason, error code, or status (passed/failed/incomplete): what it means, when it is confirmed versus review, and how to fix it. Static text only; no network or cookie data.

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": {
      "id": "<id>"
    },
    "name": "cookieguard_explain"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesFor example CG001, expected-auth-cookie-not-observed, TARGET, or incomplete.

Output Schema

NameRequiredDescriptionDefault
errorYes
knownIdsYes
explanationYes
schemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • changedOutput schema / properties / explanation / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "confirmedWhen": {
      -        "type": "string"
      -      },
      -      "exitCode": {
      -        "anyOf": [
      -          {
      -            "const": 0,
      -            "type": "number"
      -          },
      -          {
      -            "const": 1,
      -            "type": "number"
      -          },
      -          {
      -            "const": 2,
      -            "type": "number"
      -          }
      -        ]
      -      },
      -      "fix": {
      -        "type": "string"
      -      },
      -      "id": {
      -        "enum": [
      -          "CG001",
      -          "CG002",
      -          "CG003",
      -          "CG004",
      -          "CG005",
      -          "CG006",
      -          "CG007",
      -          "CG008",
      -          "CG009",
      -          "collection-incomplete",
      -          "no-cookies-observed",
      -          "expected-auth-cookie-not-observed",
      -          "validated-auth-cookie-not-observed",
      -          "scan-not-completed",
      -          "CONFIG",
      -          "INPUT",
      -          "TARGET",
      -          "NETWORK",
      -          "REDIRECT",
      -          "COLLECT",
      -          "MODEL",
      -          "OUTPUT",
      -          "BASELINE",
      -          "EVIDENCE",
      -          "BUSY",
      -          "passed",
      -          "failed",
      -          "incomplete"
      -        ],
      -        "type": "string"
      -      },
      -      "kind": {
      -        "enum": [
      -          "rule",
      -          "issue",
      -          "error",
      -          "status"
      -        ],
      -        "type": "string"
      -      },
      -      "label": {
      -        "enum": [
      -          "PASS",
      -          "FAIL",
      -          "INCOMPLETE"
      -        ],
      -        "type": "string"
      -      },
      -      "meaning": {
      -        "type": "string"
      -      },
      -      "reviewWhen": {
      -        "type": "string"
      -      },
      -      "secureExample": {
      -        "type": "string"
      -      },
      -      "severity": {
      -        "enum": [
      -          "info",
      -          "low",
      -          "medium",
      -          "high",
      -          "critical"
      -        ],
      -        "type": "string"
      -      },
      -      "status": {
      -        "enum": [
      -          "passed",
      -          "failed",
      -          "incomplete"
      -        ],
      -        "type": "string"
      -      },
      -      "title": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "kind",
      -      "title",
      -      "meaning"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "confirmedWhen": {
      +        "type": "string"
      +      },
      +      "exitCode": {
      +        "anyOf": [
      +          {
      +            "const": 0,
      +            "type": "number"
      +          },
      +          {
      +            "const": 1,
      +            "type": "number"
      +          },
      +          {
      +            "const": 2,
      +            "type": "number"
      +          }
      +        ]
      +      },
      +      "fix": {
      +        "type": "string"
      +      },
      +      "id": {
      +        "enum": [
      +          "CG001",
      +          "CG002",
      +          "CG003",
      +          "CG004",
      +          "CG005",
      +          "CG006",
      +          "CG007",
      +          "CG008",
      +          "CG009",
      +          "CG010",
      +          "CG011",
      +          "CG012",
      +          "collection-incomplete",
      +          "no-cookies-observed",
      +          "expected-auth-cookie-not-observed",
      +          "validated-auth-cookie-not-observed",
      +          "session-check-inconclusive",
      +          "logout-not-observed",
      +          "evidence-missing",
      +          "evidence-invalid",
      +          "evidence-stale",
      +          "session-check-not-run",
      +          "scan-not-completed",
      +          "CONFIG",
      +          "INPUT",
      +          "TARGET",
      +          "NETWORK",
      +          "REDIRECT",
      +          "COLLECT",
      +          "MODEL",
      +          "OUTPUT",
      +          "BASELINE",
      +          "EVIDENCE",
      +          "BUSY",
      +          "passed",
      +          "failed",
      +          "incomplete"
      +        ],
      +        "type": "string"
      +      },
      +      "kind": {
      +        "enum": [
      +          "rule",
      +          "issue",
      +          "error",
      +          "status"
      +        ],
      +        "type": "string"
      +      },
      +      "label": {
      +        "enum": [
      +          "PASS",
      +          "FAIL",
      +          "INCOMPLETE"
      +        ],
      +        "type": "string"
      +      },
      +      "meaning": {
      +        "type": "string"
      +      },
      +      "reviewWhen": {
      +        "type": "string"
      +      },
      +      "secureExample": {
      +        "type": "string"
      +      },
      +      "severity": {
      +        "enum": [
      +          "info",
      +          "low",
      +          "medium",
      +          "high",
      +          "critical"
      +        ],
      +        "type": "string"
      +      },
      +      "status": {
      +        "enum": [
      +          "passed",
      +          "failed",
      +          "incomplete"
      +        ],
      +        "type": "string"
      +      },
      +      "title": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "kind",
      +      "title",
      +      "meaning"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The one added behavioral fact is "Static text only; no network or cookie data," which reinforces but largely restates the closed-world/read-only annotations. It does add value by naming the content returned (meaning, confirmed vs review, fix guidance), though the output schema already carries the return shape.

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?

Two sentences, no filler, and the crucial scope limitation ("Static text only") is front-loaded in the second sentence rather than buried. Every clause carries information about accepted inputs or returned content.

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 explanation tool with full schema coverage, full annotations, and an output schema, this is nearly complete. The only gap is behavior for unrecognized IDs (e.g., unknown rule code) which is left unstated.

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% and the single `id` param already has an example description, so the baseline is 3. The description nevertheless adds real meaning by enumerating acceptable ID families (CG001-CG009, incomplete reason, error code, passed/failed/incomplete) that go beyond the schema's single example.

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 ("Explain") and a precisely bounded resource: rule IDs CG001-CG009, incomplete reasons, error codes, or statuses. The parenthetical enumerations tell an agent exactly what inputs are in scope, and the tool is clearly a static lookup rather than the scanning/auditing siblings.

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?

The description makes clear when this is the right tool: when you already have an ID, reason, error code, or status and need interpretation, confirmation semantics, and remediation. The clause "Static text only; no network or cookie data" implicitly separates it from cookieguard_scan/audit, but no sibling is named explicitly, so no explicit exclusion routing.

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