Skip to main content
Glama
woladi

pseudonym-mcp

by woladi

mask_text

Replace personally identifiable information in text with opaque tokens before sending to a cloud LLM. Retains a session ID to restore original values.

Instructions

Pseudonymize sensitive entities in text before sending to a cloud LLM.

Replaces PESEL numbers, phone numbers, IBANs, and email addresses via regex, and person names and organization names via local Ollama NER — with opaque tokens like [PESEL:1], [PERSON:2], [ORG:1].

Returns the masked text plus a session_id. Store the session_id to restore the original values later using unmask_text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to pseudonymize
session_idNoOptional: reuse an existing session to preserve token numbering across multiple calls
wait_for_nerNoIf true, wait up to 30 s for Ollama to finish loading the model before processing (default: false)
custom_literalsNoSpecific strings to always redact (names, IDs, phone numbers)
Behavior3/5

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

No annotations are provided, so the description bears the full burden. It explains the token replacement and the use of Ollama for NER, but does not disclose potential failures, performance implications, or the requirement for network access to Ollama.

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

Conciseness5/5

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

Three sentences with clear structure: purpose, mechanism, and return+follow-up. No redundancy or filler.

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?

Given 4 params and no output schema, the description covers core functionality and workflow. However, it omits details about return format and error handling for NER failures.

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 100%, baseline 3. The description adds value beyond schema by explaining session_id for token numbering persistence, wait_for_ner for model loading, and custom_literals for always-redacted strings.

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?

The description clearly states the tool pseudonymizes sensitive entities in text, specifies the exact entities via regex and NER, and contrasts with the sibling tool unmask_text.

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?

The description explicitly states the use case: before sending to a cloud LLM. It advises storing session_id for later restoration, but does not include explicit when-not-to-use or alternative scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/woladi/pseudonym-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server