Skip to main content
Glama
kpshinnik

docs-masked

by kpshinnik

docs-masked

在将文档发送到语言模型之前,在本地对其进行脱敏处理——并在收到响应后反向替换。

文档永远不会以原始形式离开机器。个人数据会被替换为稳定的标签(#PERSON_1#、#PHONE_2#、#ADDRESS_1#),只有带标签的文本才会发送给模型,而收到的响应会根据本地安全映射进行恢复。

документ ──▶ маска ──▶ контроль утечки ──▶ модель ──▶ обратная подстановка
           локально      локально          сеть           локально

它既可以作为 Claude Code 的技能使用,也可以作为任何其他代理的 MCP 服务器使用,还可以作为普通的命令行工具使用。

工作原理

1. 掩码。 文档被解析为文本片段——段落、单元格、标记节点。在每个片段中查找个人数据,每个值都会获得一个稳定的标签。同一个人在整个文档中获得相同的标签,包括格的变化和缩写:"Иванов Иван Иванович"、"Иванову" 和 "Иванов И.И." 都是同一个 #PERSON_1#。

2. 泄漏控制。 掩码后的文本会再次通过所有检测器,外加一次偏执检查:任何 @、任何七个或更多数字的序列、任何类似电话号码的组合。如果发现任何残留,发送操作会被阻止并抛出异常,而不是在日志中发出警告。

3. 发送。 只有带标签的文本才会发送到外部。唯一的网络出口点是 llm.send() 函数,并且它必须在请求之前执行检查。每次发送都会记录到 ~/.pii_shield/egress.jsonl 日志中:时间、提供商、模型、大小、sha256、检查状态。内容不会被记录。

4. 反向替换。 模型的响应会通过安全映射:标签被替换为原始值。对于全名,会恢复为主格形式——如果文档中某人仅被提及为 "Кузнецову Ивану Петровичу",那么在响应中他将变为 "Кузнецов Иван Петрович"。

Related MCP server: Doc Sanitizer MCP Server

安装

git clone https://github.com/kpshinnik/docs_masked.git ~/.docs_masked/src
cd ~/.docs_masked/src && ./install.sh

脚本将安装依赖项,将技能放置在 ~/.claude/skills/docs-masked 中,并打印出准备好的 MCP 配置片段。详细信息和选项请参阅 docs/INSTALL.md。

连接到代理

方式

适用对象

方法

技能

Claude Code, Claude.ai

./install.sh 或 /plugin marketplace add kpshinnik/docs_masked

MCP 服务器

Cursor, Windsurf, Codex CLI, Continue, Zed, Cline, Claude Desktop

python3 mcp_server.py 作为 stdio 服务器

CLI 和规则

其他所有情况

终端命令加上 templates/AGENTS-rule.md 放入您的项目

每种 harness 的详细步骤请参阅 docs/HARNESSES.md。

MCP 服务器无需依赖:只需要 python3。它提供六个工具——mask_text、unmask_text、verify_text、scan_document、mask_document、unmask_document。

使用

docs-masked scan   договор.docx                    # что будет скрыто
docs-masked mask   договор.docx                    # маска + сейф
docs-masked report договор.docx --open             # посмотреть глазами
docs-masked ask    договор.docx -p "Найди риски по срокам"
docs-masked unmask договор.masked.docx --vault договор.docx.vault.json

命令

命令

功能

scan FILE

显示将要被掩码的内容。文件不变,不涉及网络。

mask FILE

生成相同格式的脱敏副本以及安全映射文件。

unmask FILE --vault V

恢复原始内容。

verify FILE

检查是否没有残留的个人数据。

ask FILE -p "..."

完整流程:掩码 → 检查 → 模型 → 恢复后的响应。

report FILE

HTML 审查页面:每个替换项在上下文中显示,值被遮盖。

selftest

自检循环。

完整标志列表请参阅 skills/docs-masked/references/cli.md。

可识别的内容

任何格的全名(俄语、拉丁字母、音译)、组织、地址、电子邮件、电话号码、护照及部门代码、SNILS、INN、OGRN、KPP、BIK、结算账户、银行卡、IBAN、强制医疗保险保单、驾驶执照、车牌号、IP 地址、@昵称、出生日期和证件签发日期、凭证代码(OKTMO、OKPO、KBK),以及您自定义的字符串。

标识符会进行真实校验:SNILS 校验和、INN 和 OGRN 的校验位、银行卡的 Luhn 算法、IBAN 的 mod-97。完整表格请参阅 references/coverage.md。

格式

格式

读取

原地写入

.txt .md .rst .log .tex .yaml .ini

是

是

.docx

是

是,保留格式

.xlsx .xlsm

是

是

.csv .tsv

是

是

.json

是

是

.html .htm

是

是

.pdf

是

通过 --pdf-redact 标志,物理遮盖

.rtf .doc .odt

是

否(仅 macOS,通过 textutil)

DOCX 通过 XML 遍历,而不是通过 document.paragraphs:否则会丢失内容控件和标注内的段落——在实际合同中,这会导致整个凭证块列丢失。在表格中,列标题用作上下文:单元格 500100732259 本身与随机数无异,但在“INN”列中则能被可靠识别。

Python API

from pii_shield import ask_document

res = ask_document("договор.docx", "Составь резюме и найди риски",
                   provider="anthropic")
print(res.answer)          # имена уже восстановлены

手动控制每一步:

from pii_shield import mask_text, assert_clean, unmask_text

r = mask_text(raw)                 # r.text — с тегами, r.vault — сейф
assert_clean(r.text)               # LeakGuardError, если что-то осталось
answer = call_model(r.text)        # наружу уходит только маска
final, unknown = unmask_text(answer, r.vault, mode="canonical")

更多信息请参阅 references/api.md。

安全映射

安全映射是连接标签与原始值的唯一纽带。没有它,反向替换是不可能的。

  • 与文档一起写入为 <文件>.vault.json,权限 0600。

  • 通过 --pass-env 标志加密(scrypt + Fernet)。

  • 存储规范形式、所有遇到的变体以及按文档顺序的出现日志——由于日志的存在,精确恢复会返回原始词形,而不是规范形式。

  • 已添加到 .gitignore。不要提交它。

准确性与边界

该工具的设计原则是在安全方面犯错:宁可多掩码,也不遗漏。需要了解的事项:

  • 没有文本层的扫描 PDF 无法处理——需要 OCR。

  • 没有缩写名的同姓者 会获得单独的标签,而不会合并为同一个人。

  • 没有上下文的裸数字 可能不会被识别为标识符——但偏执检查仍然不会让这样的文本泄露出去。

  • 没有斯拉夫语结尾且没有称呼(Mr.、Dr.)的任意拉丁名字 不会被识别:捕获任意一对大写单词带来的弊大于利。

对于关键文档,建议用肉眼查看一次 docs-masked report。

开发

python3 -m pytest tests/ -q          # тесты
python3 -m pii_shield.cli selftest
python3 samples/make_samples.py      # пересоздать тестовые документы

不可违反的不变量列在 AGENTS.md 中。 sample/ 中的所有内容都是合成的;examples/ 目录保留用于您的本地文档,不会进入仓库。

许可证

MIT。

Available Tools

6 tools
mask_documentB

Создать обезличенную копию файла в том же формате и сейф соответствий рядом. Для DOCX/XLSX сохраняется форматирование, для PDF доступно физическое вымарывание (pdf_redact).

NameRequiredDescriptionDefault
outNoкуда положить копию
pathYes
allowlistNoстроки, которые маскировать не нужно
mask_urlsNoскрывать ссылки
tag_styleNoформат тега: #PERSON_1# | [[PERSON_1]] | <PERSON_1>
pdf_redactNo
vault_pathNo
extra_termsNoдополнительные строки для маскирования
include_textNoвернуть замаскированный текст в ответе
mask_all_datesNoскрывать все даты, не только даты рождения
aggressive_namesNoскрывать одиночные слова, похожие на фамилии

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It explains that the tool creates a copy (non-destructive), preserves formatting for certain types, and has a PDF redaction option. However, it does not describe what the 'safe of matches' is, whether it modifies the original, or any other behavioral aspects like idempotency or authorization requirements. Some transparency but incomplete.

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 description is short at two sentences, with the main action in the first sentence. It avoids clutter but omits important details like the purpose of the 'safe of matches'. It is reasonably concise, though the second sentence could be more integrated.

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

Completeness2/5

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

Given the tool has 11 parameters covering many masking options and no output schema, the description is insufficient. It explains basic file copying and format handling but fails to describe the extensive configuration options (allowlist, URL/date masking, name detection) or the structure of the 'safe of matches' output. The agent would need to rely heavily on parameter descriptions, which are incomplete (only 73% coverage).

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 73%, so the baseline is 3. The description adds no extra parameter details beyond what the schema already provides. It mentions PDF redaction (pdf_redact) but doesn't elaborate on other parameters like allowlist, out, or vault_path. Thus the description does not enhance parameter semantics.

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 clearly states the primary action: creating an anonymized copy of a file and a safety mapping. It specifies different behaviors for DOCX/XLSX vs PDF, adding context about format support. However, it does not explicitly distinguish from sibling tools like mask_text or unmask_document, though the document focus is implied.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus its siblings such as mask_text for text strings or scan_document for scanning. It lacks any conditions, prerequisites, or recommended use cases, leaving the agent to infer applicability solely from the tool name.

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

mask_textA

Заменить персональные данные в тексте на устойчивые теги (#PERSON_1#, #PHONE_2#). Вызывай это ДО того, как отправишь чужой текст куда-либо. Возвращает vault_id для обратной подстановки.

NameRequiredDescriptionDefault
textYes
allowlistNoстроки, которые маскировать не нужно
mask_urlsNoскрывать ссылки
tag_styleNoформат тега: #PERSON_1# | [[PERSON_1]] | <PERSON_1>
extra_termsNoдополнительные строки для маскирования
mask_all_datesNoскрывать все даты, не только даты рождения
aggressive_namesNoскрывать одиночные слова, похожие на фамилии

TDQS

A4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that it returns a vault_id for reverse substitution, but does not explain whether the operation is destructive, reversible beyond substitution, or has any side effects like logging or API rate limits.

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?

The description is extremely concise with two sentences: the first explains what the tool does, the second gives critical timing advice. Every sentence adds value with no redundancy.

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 the parameter richness (7 params, 86% schema coverage) and lack of output schema, the description adequately covers the main purpose and usage timing. It could improve by mentioning return value structure or error states, but it is sufficient for an agent to correctly select and invoke the tool.

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 coverage is 86%, so the baseline is 3. The description does not add extra meaning beyond the schema's descriptions (e.g., the allowlist, tag_style formats are already documented). The only added value is the overall workflow context, not parameter-specific details.

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 verb 'replace' and resource 'personal data in text', specifies the output format of stable tags like #PERSON_1#, and distinguishes itself from siblings like unmask_text and mask_document by focusing on text-level masking.

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 says 'Call this BEFORE sending someone else's text anywhere', providing clear timing guidance. However, it does not explicitly state when not to use it or describe alternative tools like verify_text or mask_document for comparison.

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

scan_documentA

Показать, что будет скрыто в файле: количество и типы находок. Файл не изменяется, оригиналы значений не возвращаются. Форматы: .csv, .doc, .docx, .htm, .html, .ini, .json, .log, .markdown, .md, .odt, .pdf, .rst, .rtf, .srt, .tex, .tsv, .txt, .wordml, .xhtml, .xlsm, .xlsx, .yaml, .yml

NameRequiredDescriptionDefault
pathYes
allowlistNoстроки, которые маскировать не нужно
mask_urlsNoскрывать ссылки
tag_styleNoформат тега: #PERSON_1# | [[PERSON_1]] | <PERSON_1>
extra_termsNoдополнительные строки для маскирования
mask_all_datesNoскрывать все даты, не только даты рождения
aggressive_namesNoскрывать одиночные слова, похожие на фамилии

TDQS

A4.2/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden. It explicitly states the file is not modified and original values are not returned, which are key behavioral traits for a scan tool. It also lists supported formats, providing additional transparency.

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?

The description is two sentences, front-loaded with the main purpose and key guarantees, followed by a compact list of supported formats. No extraneous words.

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?

The description explains the tool's output nature (counts and types, no original values) but lacks a detailed return structure or error handling expectations. Given no output schema, it could be more explicit, but for a scan tool with 7 params, the provided information is reasonably complete.

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 coverage is 86% (6/7 parameters have descriptions), so the schema already explains parameter meanings. The description itself does not add parameter details beyond noting file formats, which corresponds to the 'path' parameter but is already partially covered by the schema. Baseline 3 is appropriate.

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 uses a specific verb ('Показать' - show) and resource ('что будет скрыто в файле'), clearly indicating a preview/scan function that counts and types findings. It distinguishes from siblings like mask_document (which actually modifies the file).

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?

The description implies usage for non-destructive previewing but does not explicitly contrast with mask_document or other sibling tools. It provides clear context (file not modified, original values not returned) but no explicit when-to-use vs alternatives.

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

unmask_documentC

Восстановить оригиналы в ранее замаскированном файле по сейфу.

NameRequiredDescriptionDefault
outNo
modeNo
pathYes
vault_pathYes

TDQS

C2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the action ('restore originals') without revealing side effects, whether the operation is destructive, authentication requirements, or any rate limits. The description is insufficient for an agent to understand the tool's behavior.

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

Conciseness2/5

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

The description is a single sentence, but it is not concise because it is under-specified and in a non-English language, failing to efficiently convey necessary information. It does not earn its place as a useful guide.

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

Completeness1/5

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

With 4 parameters (2 required), no output schema, and no annotations, the description is critically incomplete. It does not explain return values, prerequisites, parameter behavior, or any operational context. The agent cannot determine how to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description adds no meaning to any parameter. The parameter names (out, mode, path, vault_path) are not explained, and the enum mode (sequential/canonical) is left undefined. The description does not compensate for the lack of schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool restores originals in a previously masked file by vault, which is a specific verb+resource. However, it is in Russian, which may reduce clarity for non-Russian-speaking agents. It distinguishes from siblings like mask_document and unmask_text, but the phrase 'by vault' is ambiguous and does not fully align with the parameter name 'vault_path'.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool vs alternatives such as mask_document or unmask_text. There is no mention of prerequisites (e.g., the file must have been previously masked) or context for when unmasking is appropriate.

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

unmask_textB

Вернуть оригиналы вместо тегов по сейфу. mode=canonical — для ответа модели (ФИО в именительном падеже), mode=sequential — точное восстановление ранее замаскированного текста.

NameRequiredDescriptionDefault
modeNo
textYes
vault_idYesидентификатор из mask_text или путь к файлу сейфа

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions that the tool returns originals from a vault and describes two modes, but it does not disclose whether the operation is read-only, whether it modifies the vault, what happens on invalid vault_id or text, or any side effects. For a tool that likely interacts with a vault, this is a significant 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?

The description is concise: two sentences conveying purpose and mode details. The first sentence clearly states the action, and the second elaborates on modes. It is front-loaded and efficient, though it could be slightly more structured (e.g., separating mode descriptions) without losing brevity.

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

Completeness2/5

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

Given the tool has 3 parameters, no output schema, and no annotations, the description is incomplete. It explains modes but does not describe the return format, prerequisites (e.g., that text must have been previously masked), error conditions, or the behavior of the text parameter. The lack of output schema information means the agent has no idea what the tool returns. This is insufficient for safe and correct invocation.

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 only 33% (only vault_id has a description). The description adds meaning for the mode parameter by explaining the two enum values, but it does not describe the text parameter at all. The vault_id parameter's schema description already covers its purpose. Overall, the description partially compensates for the low schema coverage by clarifying the mode parameter, but the text parameter remains undocumented.

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's purpose: 'Return originals instead of tags from the vault.' The two modes (canonical for model response, sequential for exact restoration) further specify what the tool does. The name and sibling tools (mask_text, unmask_document) help distinguish it as a text-level unmasking operation.

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?

The description explains when to use each mode (canonical for model response, sequential for exact restoration), but it does not explicitly state when to avoid this tool, nor does it compare it to alternatives like unmask_document or verify_text. The guidance is implicit through the mode descriptions, but lacks explicit exclusions or context for choosing between siblings.

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

verify_textC

Проверить, что в тексте не осталось персональных данных. safe_to_send=false означает, что отправлять нельзя.

NameRequiredDescriptionDefault
textYes
allowlistNoстроки, которые маскировать не нужно
mask_urlsNoскрывать ссылки
tag_styleNoформат тега: #PERSON_1# | [[PERSON_1]] | <PERSON_1>
extra_termsNoдополнительные строки для маскирования
mask_all_datesNoскрывать все даты, не только даты рождения
aggressive_namesNoскрывать одиночные слова, похожие на фамилии

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It reveals that the tool returns a result where 'safe_to_send=false' means the text cannot be sent, but it omits many critical details: whether the tool has side effects, what the exact output structure is, authentication requirements, or rate limits. The description is too minimal for a tool with 7 parameters.

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?

The description is two sentences, concise and front-loaded: first sentence states purpose, second explains a key output indicator. No redundant information. For a tool with a single core action, this is appropriately sized.

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

Completeness2/5

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

Given 7 parameters and no output schema, the description is notably incomplete. It does not explain the return value format (e.g., boolean, object with 'safe_to_send'), how parameters like 'mask_urls' or 'tag_style' influence verification, or how this tool relates to the sibling 'scan_document' (both seem to check PII). An agent would lack essential context to use it correctly.

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 86% (6 of 7 parameters have descriptions), so baseline is 3. The tool description does not add any commentary on parameters beyond what the schema already provides. For example, it doesn't explain how 'allowlist' or 'aggressive_names' affect the verification logic. The description thus provides no additional value for parameter understanding.

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 the verb 'Проверить' (check) and resource 'текст' (text), clearly indicating it verifies absence of personal data. It also hints at the output semantics with 'safe_to_send=false'. This differentiates it from siblings like mask_text (which modifies) and scan_document (which likely processes documents). However, it does not explicitly specify the return type (e.g., boolean or object), slightly reducing clarity.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like mask_text or scan_document. There is no mention of prerequisites, typical workflows (e.g., 'call after masking'), or exclusions. The sibling tools suggest different operations, but the description does not help an agent decide.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 6 tool updatesv1.0.0
    • First observedmask_document
    • First observedmask_text
    • First observedscan_document
    • First observedunmask_document
    • First observedunmask_text
    • First observedverify_text

TDQS

A3.5/5.0

Scored across 6 tools

Disambiguation5/5

Each tool targets a distinct operation (mask vs unmask, text vs file) and the descriptions clearly differentiate text vs document variants. No two tools could be confused for the same purpose.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern using snake_case: mask_text, unmask_text, verify_text, scan_document, mask_document, unmask_document. The verbs are predictable and the nouns clearly indicate the resource type.

Tool Count5/5

With exactly 6 tools, the server is well-scoped for the domain of personal data masking/unmasking. Each tool serves a necessary role without redundancy, covering both text and document workflows in a focused manner.

Completeness5/5

The tool surface covers the full lifecycle: mask (text+document), unmask (text+document), verification, and preview. There are no obvious gaps—the server provides everything needed to protect and restore personal data in both free text and structured documents.

Maintenance

ActivityStale
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    MCP server for automatic detection and redaction of PII in text, with anonymization and deanonymization capabilities, all local processing.
    1
    -
  • A
    license
    A
    quality
    B
    maintenance
    An MCP server that redacts PII/PHI from text before it ever reaches an LLM — self-hosted, fail-closed, and HIPAA-aware.
    3
    24 PyPI
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    MCP server providing on-prem PII detection and anonymization tools (scan and is_sensitive) for AI agents, ensuring data stays local.
    4
    MIT