Skip to main content
Glama

cookieguard_explain

Read-onlyIdempotent

Explains CookieGuard rule IDs, incomplete reasons, error codes, and statuses (passed/failed/incomplete), clarifying confirmed versus review cases and how to fix issues.

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.

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. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/closed-world, so the bar is lower, and the description still adds real behavior: 'Static text only; no network or cookie data' tells the agent this cannot probe a live site, and 'what it means, when it is confirmed versus review' previews the answer shape. What is missing is the failure mode for an unrecognized ID.

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?

A single front-loaded sentence covering scope, accepted inputs, answer content, and the static/no-data constraint. There is no filler and nothing buried after the useful part.

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 lookup with an output schema that documents return values, the description covers everything an agent needs to call it correctly. Only the unknown-ID behavior is left unstated, which is a minor gap.

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 parameter is already documented with examples, so the baseline is a 3. The description earns a step up by classifying the otherwise loose 'id' string into four semantic families (rule ID, incomplete reason, error code, status), which tells the agent what kinds of tokens are legal.

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 opens with a specific verb and resource ('Explain a CookieGuard rule ID') and enumerates the accepted ID classes (CG001-CG009, incomplete reason, error code, status). It never names a sibling, but 'Static text only; no network or cookie data' implicitly separates it from the executable tools cookieguard_scan/audit/policy.

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?

Use is implied rather than stated: the agent can infer 'call this when you have an ID and need its meaning.' The clauses about 'confirmed versus review' and 'how to fix it' describe the content of the answer, not when to choose this tool over a sibling, and no exclusion or prerequisite is given.

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