Skip to main content
Glama

German BNetzA SMARD & § 14a EnWG Grid Fee Preview Oracle

GDPR PII Shield & EU AI Act Anonymization Gate

redact_gdpr_pii_text
Read-onlyIdempotent

Deterministically detects and redacts DACH and European personally identifiable information (IBAN, German Steuer-ID, EU VAT/USt-IdNr., Handelsregister HRB/HRA numbers, email addresses, and phone numbers) from unstructured text before forwarding prompts to external LLMs. Use this tool as a pre-flight privacy filter in agent pipelines. Executes strictly read-only in volatile EU RAM (input text is never persisted) and issues a signed Ed25519 anonymization Verifiable Credential.

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": {
      "raw_text": "<raw_text>"
    },
    "name": "redact_gdpr_pii_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
raw_textYesUnstructured prompt, ticket, or document text to scan and redact for GDPR PII entities.
max_accepted_fee_eurNoOptional maximum x402 fee in EUR accepted by the caller (planned post-GmbH list price 0.008 EUR; 0.00 EUR in Pre-GmbH Shadow-Pass). Omit if unpaid.
ap2_intent_mandate_idNoOptional AP2 (Agent Payments Protocol) intent mandate reference ID for audit correlation.

Output Schema

NameRequiredDescriptionDefault
typeYesCredential types (including 'VerifiableCredential' and domain attestation type).
proofYesEd25519 cryptographic signature proof verifiable via /.well-known/did.json.
issuerYesCryptographic issuer DID ('did:web:iotpay.eu').
@contextNoW3C Verifiable Credentials context URIs.
issuanceDateYesISO-8601 UTC issuance timestamp.
credentialSubjectYesDeterministic verification verdict, structured findings, and SHA-256 payload hash.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / ap2_intent_mandate_id / description
      Added value: +"Optional AP2 (Agent Payments Protocol) intent mandate reference ID for audit correlation."
    • changedInput schema / properties / max_accepted_fee_eur / description
      Previous value: -"Maximum fee in EUR your agent is willing to pay per call (list price 0.008 EUR). Omit if not willing to pay."New value: +"Optional maximum x402 fee in EUR accepted by the caller (planned post-GmbH list price 0.008 EUR; 0.00 EUR in Pre-GmbH Shadow-Pass). Omit if unpaid."
    • addedInput schema / properties / max_accepted_fee_eur / minimum
      Added value: +0
    • changedInput schema / properties / raw_text / description
      Previous value: -"Unstructured text containing potential DACH/EU PII."New value: +"Unstructured prompt, ticket, or document text to scan and redact for GDPR PII entities."
    • addedInput schema / properties / raw_text / minLength
      Added value: +1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "W3C Verifiable Credential signed with Ed25519 (did:web:iotpay.eu) containing deterministic validation results and SHA-256 payload proof.",
      +  "properties": {
      +    "@context": {
      +      "description": "W3C Verifiable Credentials context URIs.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "credentialSubject": {
      +      "description": "Deterministic verification verdict, structured findings, and SHA-256 payload hash.",
      +      "type": "object"
      +    },
      +    "issuanceDate": {
      +      "description": "ISO-8601 UTC issuance timestamp.",
      +      "type": "string"
      +    },
      +    "issuer": {
      +      "description": "Cryptographic issuer DID ('did:web:iotpay.eu').",
      +      "type": "string"
      +    },
      +    "proof": {
      +      "description": "Ed25519 cryptographic signature proof verifiable via /.well-known/did.json.",
      +      "properties": {
      +        "proofPurpose": {
      +          "type": "string"
      +        },
      +        "signatureHex": {
      +          "type": "string"
      +        },
      +        "type": {
      +          "type": "string"
      +        },
      +        "verificationMethod": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "type": {
      +      "description": "Credential types (including 'VerifiableCredential' and domain attestation type).",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "type",
      +    "issuer",
      +    "issuanceDate",
      +    "credentialSubject",
      +    "proof"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely new behavior: deterministic (not probabilistic) matching, volatile EU RAM with no persistence of input text, and issuance of a signed Ed25519 credential. It does not disclose what redaction actually looks like (masking vs. placeholder substitution) or any rate/throughput limits, so it falls short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core capability and the pipeline-placement guidance are front-loaded and useful, but the title and body carry promotional framing ("GDPR PII Shield & EU AI Act Anonymization Gate", "signed Ed25519 anonymization Verifiable Credential") that is denser than an agent needs. The EU AI Act is named in the title but never explained in the body, adding weight without information.

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 an output schema present, annotations covering the safety profile, and full schema coverage, the description supplies what remains: entity scope, determinism, data-handling, and pipeline placement. The only meaningful gap is the form of the redacted output, which the output schema presumably carries.

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%, so all three parameters are already documented in the input schema, including the x402 fee cap and AP2 mandate ID. The description adds no additional meaning about parameter behavior or interaction (e.g., whether supplying max_accepted_fee_eur changes the response), so the baseline 3 applies.

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+resource ("deterministically detects and redacts") and enumerates the exact entity classes covered (IBAN, Steuer-ID, EU VAT/USt-IdNr., HRB/HRA, email, phone). This is clearly distinguishable from the sibling tools, which are regulatory validators (EN 16931, EUDAMED, DORA, sanctions screening) rather than text anonymizers.

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?

"Use this tool as a pre-flight privacy filter in agent pipelines" plus "before forwarding prompts to external LLMs" gives a concrete triggering condition and ordering constraint. It stops short of stating when NOT to use it or naming an alternative for non-EU/non-PII scrubbing needs.

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.