Skip to main content
Glama

Ocultar datos personales y secretos

text-redact-pii
Read-onlyIdempotent

Enmascara datos personales y secretos en un texto: correos, teléfonos, tarjetas (Luhn), IBAN, IP, JWT, claves API y claves privadas. Basado en patrones. Cuándo: hay que ocultar datos personales (correos, teléfonos, documentos, tarjetas) en un texto antes de registrarlo o enviarlo a un modelo. No para: extraer direcciones de correo de un texto (extract-emails). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Masks common personal data and secrets in text: emails, phone numbers, Luhn-valid card numbers, IBANs, IPv4 addresses, JWTs, API keys (sk-, AKIA, ghp_, xox, AIza) and PEM private keys. Pattern-based; may miss or over-match. When: personal data (emails, phones, IDs, cards) has to be masked in text before it is logged or sent to a model. Not for: finding email-like addresses in text (extract-emails). [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
textYesText (string; required).
styleNoReplacement (optional; one of: label, mask; default "label").label
typesNoTypes to redact (array of string; optional; default ["email","jwt","api_key","private_key","iban","card","ip","phone"]; at least 1 items; up to 8 items).

Output Schema

NameRequiredDescriptionDefault
textNo
totalNo
redactionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / text / examples
      Added value: +[
      +  "Escríbeme a ana@burs-ia.com o al +57 300 123 4567. Tarjeta 4111 1111 1111 1111, key sk-ant-abcdefghijklmnopqrstu."
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Masks common personal data and secrets in text: emails, phone numbers, Luhn-valid card numbers, IBANs, IPv4 addresses, JWTs, API keys (sk-, AKIA, ghp_, xox, AIza) and PEM private keys. Pattern-based; may miss or over-match. When: personal data (emails, phones, IDs, cards) has to be masked in text before it is logged or sent to a model. Not for: finding email-like addresses in text (extract-emails). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive/openWorld=false, and the description adds context they cannot carry: pattern-based detection that may miss or over-match, determinism guarantee, no network, no stored state, plus hard limits (64 KB input, 1 s per call, 1 MB result). That is exactly the added behavioral value expected.

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?

Content is well front-loaded with labeled sections, but the same information is delivered twice (Spanish block then English block) and a third time via the pointer to inputSchema.description, roughly doubling the necessary length. Every sentence earns its place, yet the duplication does not.

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

Completeness5/5

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

For a 3-parameter, read-only transform with an output schema, the description covers purpose, alternatives, safety profile, determinism and size/time limits — everything an agent needs before calling it. Return values need not be described since an output schema exists.

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% and the enum for `types` is fully documented in the schema, so the baseline of 3 applies. The description's enumeration of detectable data types loosely maps to the `types` values but never explains `style` (label vs mask) or how `types` narrows detection.

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 concrete verb+resource ('Enmascara datos personales y secretos en un texto') and enumerates exactly what is detected (emails, Luhn cards, IBANs, IPv4, JWTs, sk-/AKIA/ghp_/xox/AIza API keys, PEM keys). It explicitly separates itself from the nearest sibling by naming extract-emails as the tool for extracting rather than masking.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Uses explicit 'Cuándo' / 'No para' sections: mask before logging or sending text to a model, and not for finding email-like addresses (route to extract-emails instead). Both the positive trigger and the exclusion are spelled out, leaving nothing to inference.

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