Skip to main content
Glama
anonymize-mcp

anonymize-mcp

by ctangarife

anonymize

Replace sensitive content such as credentials, secrets, tokens, emails, IPs, and phone numbers with typed placeholders before sending text to an LLM or sharing it.

Instructions

Minimiza contenido sensible en el texto antes de enviarlo a un LLM o compartirlo. Reemplaza credenciales, secretos conocidos, tokens, URLs, correos, IPs y teléfonos por placeholders tipados ([SECRET_1], [EMAIL_1]...).

Args: text: el texto a minimizar. secrets: valores secretos conocidos de tu entorno (ej. extraídos de tu .env); se comparan por igualdad exacta (detección determinista).

Returns: {"anonymized_text": str, "counts": {categoria: n}, "total": int}. Nunca devuelve los valores originales ni el mapa placeholder->valor (el mapa no se genera).

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

Input Schema

NameRequiredDescriptionDefault
textYes
secretsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and does meaningful work: it discloses that original values and the placeholder-to-value map are never returned (redaction is one-way and non-reversible from the output), and that known secrets are matched by exact equality, i.e. deterministic rather than heuristic detection. It does not cover failure behavior, size limits, or whether detection is case-sensitive.

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 definition is front-loaded with the purpose sentence, then uses compact Args/Returns blocks, with no filler or repetition. The only wasted line is the tautological 'text: el texto a minimizar', which adds nothing.

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?

There is no output schema, and the description compensates by specifying the return shape ('anonymized_text', 'counts' per category, 'total') plus the privacy guarantee about what is not returned. For a two-parameter, single-purpose transformer this is nearly sufficient; only guidance relative to the file-based sibling is missing.

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 description coverage is 0%, so the description must compensate, and it largely does for the non-obvious parameter: 'secrets' is explained as environment-known values (e.g. pulled from .env) compared by exact equality, which tells the agent both the expected source and the matching semantics. The 'text' parameter only gets a restatement ('el texto a minimizar'), but a required plain string is self-evident, so the practical gap is small.

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 states a specific verb and resource ('Minimiza contenido sensible en el texto') and enumerates exactly what gets replaced (credentials, secrets, tokens, URLs, emails, IPs, phones) with typed placeholders. The scope 'en el texto' implicitly separates it from anonymize_file, but the sibling is never named, so differentiation is left to inference.

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?

It gives clear usage context: run it before sending content to an LLM or sharing it externally. That tells the agent when the tool is appropriate, but there is no explicit when-not guidance, no mention of anonymize_file as the alternative for file inputs, and no note on whether it can be skipped for already-clean text.

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

Deploy Server

Other Tools