Skip to main content
Glama

EU Sovereign PII Scrubber & Pseudonymizer

eu_pii_scrubber_anonymizer
Read-onlyIdempotent

[Stateless sovereign PII scrubber. Pure regex & Luhn/MOD-97 calculation, read-only, side-effect free]. Detects and pseudonymizes European personal identifiable information (Codice Fiscale, EU VAT, IBANs, Luhn credit cards, emails, phone numbers, and IPv4/IPv6 addresses) strictly within local memory under GDPR Art. 4(5) and Art. 32. Usage: Use this tool to sanitize sensitive text, contracts, medical records, or support tickets before forwarding to external LLMs or third-party platforms. Returns: JSON object with { originalLength: number, sanitizedLength: number, detectedEntityCount: number, detectedEntityTypes: array, entities: array, sanitizedText: string, sovereignAudit: object }.

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": {
      "text": "<text>"
    },
    "name": "eu_pii_scrubber_anonymizer"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesRaw input text containing potential European PII to inspect and sanitize
saltSecretNoOptional salt for deterministic HMAC hashing
replacementStrategyNoMasking strategy (default: PSEUDONYMIZATION)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, yet the description adds materially new behavioral facts: processing is stateless, purely regex plus Luhn/MOD-97 computation, and confined to local memory with no side effects — exactly what an agent needs to know when routing regulated data. Citing the GDPR Art. 4(5)/Art. 32 basis reinforces that nothing leaves the environment, which is not inferable from the annotations.

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?

The bracketed behavioral tag is front-loaded, followed by labeled 'Usage:' and 'Returns:' sections, which reads well for scanning. Some of the branding language ('Stateless sovereign', 'sovereignAudit') is promotional filler that does not help invocation, though it occupies little space.

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?

With no output schema, the description usefully enumerates the return fields (lengths, entity count/types, entities array, sanitizedText), which is a real gap-filler. It does not describe the contents of sovereignAudit or any size/rate constraints on input text, leaving minor unknowns for a compliance-sensitive tool.

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 description coverage is 100%, including a documented enum for replacementStrategy, so the schema already carries parameter meaning and the baseline of 3 applies. The description adds nothing further about the effect of PSEUDONYMIZATION vs REDACTION vs HASHING, nor how saltSecret interacts with idempotency, so it neither compensates nor regresses.

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 names a specific verb+resource pair — detecting and pseudonymizing European PII (Codice Fiscale, EU VAT, IBAN, Luhn cards, emails, phones, IPv4/IPv6) — and scopes it explicitly to European identifiers, so an agent knows what will and won't be caught. It never contrasts itself with siblings like eu_synthetic_data_masker or gdpr_cross_border_transfer_audit, so the boundary between scrubbing and synthetic masking is left for the agent to infer from names.

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 'Usage:' line gives concrete situations — sanitizing contracts, medical records, and support tickets before forwarding to external LLMs or third-party platforms — which is a clear call condition. It stops short of exclusions, e.g. it never says when to prefer the synthetic masker or that it should not be used for non-EU identifiers.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources