Skip to main content
Glama

Tinplate AI Agent Security & Guardrails MCP

tinplate_pii_redactor

Read-onlyIdempotent

Detect and redact emails, phones, IBANs, payment cards, IPs, SSNs, EU VATs, and national IDs with deterministic reversible tokens before LLM calls. Operates offline in volatile RAM. (Endpoint: POST /v1/pii-redactor)

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": "tinplate_pii_redactor"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo'token' returns reversible [PII_<TYPE>_N] tokens + caller-only tokens map; 'mask' returns [REDACTED:<TYPE>] with an empty tokens map.
textYesInput text to scan and redact (max 256 KB).
typesNoOptional whitelist of PII entity types to redact.
localesNoLocale packs to enable (defaults to ['GLOBAL', 'EU']).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / properties / locales / example
      Removed value: -[
      -  "GLOBAL",
      -  "EU",
      -  "HU"
      -]
    • removedInput schema / properties / locales / items / example
      Removed value: -"EU"
    • removedInput schema / properties / mode / example
      Removed value: -"token"
    • removedInput schema / properties / text / example
      Removed value: -"Contact Alice at alice@example.com or +36 30 123 4567. IBAN: HU42117730161111101800000000."
    • removedInput schema / properties / types / example
      Removed value: -[
      -  "EMAIL",
      -  "IBAN",
      -  "CREDIT_CARD"
      -]
    • removedInput schema / properties / types / items / example
      Removed value: -"IBAN"
  2. Added
  3. Removed
  4. Changed2 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / types / items / description
      Added value: +"PII entity category."
  5. Changed1 schema field changed
    • changedInput schema / properties / types / items / enum
      Previous value: -[
      -  "EMAIL",
      -  "CREDIT_CARD",
      -  "IBAN",
      -  "PHONE",
      -  "IPV4",
      -  "SSN",
      -  "EU_VAT",
      -  "HU_TAX_ID",
      -  "HU_TAJ"
      -]New value: +[
      +  "EMAIL",
      +  "CREDIT_CARD",
      +  "IBAN",
      +  "PHONE",
      +  "IPV4",
      +  "IPV6",
      +  "SSN",
      +  "EU_VAT",
      +  "HU_TAX_ID",
      +  "HU_TAJ"
      +]
  6. Changed10 schema fields changed
    • addedInput schema / properties / locales
      Added value: +{
      +  "description": "Locale packs to enable (defaults to ['GLOBAL', 'EU']).",
      +  "example": [
      +    "GLOBAL",
      +    "EU",
      +    "HU"
      +  ],
      +  "items": {
      +    "description": "Locale pack for region-specific PII detectors.",
      +    "enum": [
      +      "GLOBAL",
      +      "EU",
      +      "HU"
      +    ],
      +    "example": "EU",
      +    "type": "string"
      +  },
      +  "maxItems": 3,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / mode / description
      Previous value: -"Parameter 'mode' (e.g. \"token\")"New value: +"'token' returns reversible [PII_<TYPE>_N] tokens + caller-only tokens map; 'mask' returns [REDACTED:<TYPE>] with an empty tokens map."
    • addedInput schema / properties / mode / enum
      Added value: +[
      +  "token",
      +  "mask"
      +]
    • addedInput schema / properties / mode / example
      Added value: +"token"
    • changedInput schema / properties / text / description
      Previous value: -"Parameter 'text' (e.g. \"Customer janos.kovacs@example.hu (IBAN HU4211773016111110180\")"New value: +"Input text to scan and redact (max 256 KB)."
    • addedInput schema / properties / text / example
      Added value: +"Contact Alice at alice@tinplate.dev or +36 30 123 4567. IBAN: HU42117730161111101800000000."
    • addedInput schema / properties / text / maxLength
      Added value: +262144
    • addedInput schema / properties / text / minLength
      Added value: +1
    • addedInput schema / properties / types
      Added value: +{
      +  "description": "Optional whitelist of PII entity types to redact.",
      +  "example": [
      +    "EMAIL",
      +    "IBAN",
      +    "CREDIT_CARD"
      +  ],
      +  "items": {
      +    "enum": [
      +      "EMAIL",
      +      "CREDIT_CARD",
      +      "IBAN",
      +      "PHONE",
      +      "IPV4",
      +      "SSN",
      +      "EU_VAT",
      +      "HU_TAX_ID",
      +      "HU_TAJ"
      +    ],
      +    "example": "IBAN",
      +    "type": "string"
      +  },
      +  "maxItems": 15,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "text",
      -  "mode"
      -]New value: +[
      +  "text"
      +]
  7. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Adds meaningful context beyond the annotations: offline execution, volatile RAM, and deterministic reversible tokens. Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so this is solid supplementary detail rather than filling a gap.

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?

Two compact sentences plus an endpoint hint, with the core capability front-loaded. No wasteful wording, though the endpoint parenthetical is of marginal value to an agent.

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 four-parameter tool with a fully described schema and no output schema, the description covers purpose, environment, and reversibility. The return structure is largely handled by the schema's mode description, so little is missing.

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 the schema already documents mode, text limits, type whitelist, and locales. The description adds no parameter-level formats or defaults beyond what the schema supplies, making the baseline 3 appropriate.

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?

States specific verbs (detect and redact) and a concrete resource set, enumerating the PII categories and the pre-LLM-call use case. It distinguishes itself from the restore sibling only implicitly through 'reversible tokens' rather than naming an alternative.

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?

Gives a clear timing cue, 'before LLM calls', which implies when to invoke it. It offers no explicit when-not guidance, prerequisites, or named alternative for the inverse operation.

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.