Skip to main content
Glama

deanonymize_document

Restore anonymized Word documents using their mapping file, verifying every change is still in place before restoring. If the document has drifted, nothing is restored and mismatches are reported.

Instructions

Reverse anonymize_for_review using its mapping file (default .anonymization.json beside the document). Every recorded change is verified to still sit where the mapping says before anything is restored; if the document drifted since anonymization, NOTHING is restored and the refusal lists every mismatch. The mapping file is left on disk to delete once the restore is confirmed. Auto-backup: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Refuses documents open in Word.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
backupNo
file_pathYes
mapping_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: it discloses drift verification, all-or-nothing restoration, mismatch listing, that the mapping file is intentionally left on disk, backup behavior including backup=False semantics, atomic validated save, and refusal for Word-open documents. This is exceptionally transparent.

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 dense sentences convey the core action, the safety mechanism, the post-restore file state, backup behavior, save guarantees, and a hard refusal condition. There is no filler; every clause adds operational value.

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?

Given the operation's risk profile—restoring anonymization changes—the description covers failure modes, side effects, persistence of the mapping file, backup rotation, atomicity, and an open-document constraint. Output schema exists to cover return values, so nothing essential 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 does for mapping_path ('default <name>.anonymization.json beside the document') and backup ('backup=False skips rotation only'). file_path is not explicitly elaborated, but the document-centric context and 'beside the document' phrasing make its role sufficiently clear.

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 opens with 'Reverse anonymize_for_review using its mapping file', naming the exact verb, resource, and the sibling operation it undoes. It clearly distinguishes this tool from every other document tool in the sibling list.

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 positions the tool as the direct inverse of anonymize_for_review and gives the default mapping file location, making the intended context clear. It does not explicitly list 'do not use when X applies', but the paired-operation framing plus the refusal conditions ('Refuses documents open in Word') provide strong usage guidance.

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/nometalalchemist/KitchenSink4Word'

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