Skip to main content
Glama
anonymize-mcp

anonymize-mcp

by ctangarife

anonymize_file

Redacts sensitive content from a file on disk before it reaches an LLM or other boundary, replacing credentials, secrets, and PII with typed placeholders and returning category counts.

Instructions

Minimiza el contenido de un archivo (nota, código, log, ticket) antes de que cruce una frontera. Igual que anonymize pero leyendo del disco.

Args: path: ruta del archivo a minimizar. secrets_file: ruta opcional de un .env con secretos conocidos (detección determinista por igualdad exacta).

Returns: {"anonymized_text": str, "counts": {categoria: n}, "total": int}.

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": {
      "path": "<path>"
    },
    "name": "anonymize_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
secrets_fileNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does useful work: it documents the detection mechanism for secrets ("detección determinista por igualdad exacta") and the return shape, implying the file is read rather than rewritten in place. It never states permission requirements, file-size or encoding limits, or error behavior, which leaves meaningful gaps for an unannotated tool.

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?

Purpose and sibling disambiguation are front-loaded in the first two sentences, followed by compact Args/Returns blocks. The docstring formatting is slightly mechanical and the Args entries partly restate parameter names, but there is no padding or redundancy worth trimming.

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 two-parameter tool with no output schema and no annotations, the description covers purpose, both parameters, the detection mechanism, and the return structure including per-category counts. Remaining gaps are operational ones (permissions, size limits, in-place vs. read-only behavior) rather than anything blocking a correct invocation.

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 coverage is 0% (parameters carry only titles and types), so the description must compensate, and it largely does: `path` is defined as the file to minimize and `secrets_file` as an optional .env path whose secrets are matched by exact equality. The deterministic exact-match semantics is genuinely new information absent from the schema. It does not specify path formats or what happens with malformed .env files.

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 and resource ("minimiza el contenido de un archivo") and explicitly differentiates itself from the sibling: "Igual que `anonymize` pero leyendo del disco." The parenthetical file-type examples (nota, código, log, ticket) further pin down the scope, so an agent can choose between this and `anonymize` without opening either schema.

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?

Gives a concrete triggering context ("antes de que cruce una frontera") and names the alternative tool with the discriminating condition (reads from disk vs. presumably in-memory text). It lacks an explicit when-not-to-use caveat, so it falls short of a full 5, but the routing signal is clear.

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