Skip to main content
Glama
@b2apps/gdpr-ropa-audit-mcp

@b2apps/gdpr-ropa-audit-mcp

classify_cookies_and_trackers

Classify cookie and tracker script names into Strictly Necessary, Analytics, Marketing, or Functional categories and identify ePrivacy/GDPR prior-consent requirements for each.

Instructions

Classify a list of cookie or tracker script names (_ga, fbp, cf_clearance, stripe_mid, ph*, etc.) into Strictly Necessary, Analytics, Marketing, or Functional categories with ePrivacy Directive Art. 5(3) and GDPR Art. 6(1)(a) prior consent requirements.

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": {
      "cookies": "<cookies>"
    },
    "name": "classify_cookies_and_trackers"
  }
}

Input Schema

NameRequiredDescriptionDefault
cookiesYesArray of cookie or tracker script names to classify (e.g. ['_ga', '_fbp', 'cf_clearance', 'stripe_mid', 'ph_project_posthog']).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose real behavioral substance that annotations could not: the four-category output taxonomy and the legal basis applied (ePrivacy Art. 5(3), GDPR Art. 6(1)(a) prior consent), which tells the agent the classification is consent-oriented rather than purely descriptive. However, it says nothing about how unknown or ambiguous names are handled, whether the result is a deterministic lookup or a heuristic with confidence, or that it is a read-only, non-mutating operation.

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?

One sentence, front-loaded with the verb and resource, with the example list and output taxonomy packed in without a single redundant clause. No preamble, no restatement of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter classification tool with no output schema and no annotations, the definition covers purpose, input flavor, and output categories, which is most of what an agent needs. It is incomplete on the two things that would change calling behavior: what happens to names not in its knowledge set, and whether the response includes per-item reasoning or just a label.

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 there is a single required parameter, so the baseline would be 3. The description adds genuine meaning beyond the schema by showing glob-style pattern support ('ph_*', 'ph_*' alongside concrete names), signalling that wildcards are accepted and that mixed concrete/pattern arrays are valid input.

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 ('Classify') and a narrowly defined resource ('a list of cookie or tracker script names') and enumerates the exact output taxonomy: Strictly Necessary, Analytics, Marketing, Functional. Sibling tools (audit_gdpr_ropa_record, generate_dpa_scc_checklist) operate on RoPA records and DPA/SCC checklists, so this tool's scope is distinguishable without opening the schema.

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?

Usage is only implied: an agent can infer this is the tool for mapping cookie names to consent categories, but the description never states when to prefer it over the sibling audit tools, nor any precondition (e.g. inventory must be collected first) or exclusion. No guidance on batch size, unknown-name handling, or what to do when the tool is uncertain.

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