Skip to main content
Glama

sanitize_metadata

Removes or anonymizes metadata from DOCX files, including session fingerprints, author names, and document properties, at three configurable sanitization levels.

Instructions

Write a sanitized copy of the open document to output_path.

Level 1: Remove rsid session-fingerprint attributes from document.xml. Level 2: + Replace tracked-change author names (w:author on w:ins/w:del). Level 3: + Clear creator/lastModifiedBy/revision in docProps/core.xml + Clear Company in docProps/app.xml + Remove attachedTemplate reference from word/settings.xml

Args: output_path: Destination path for the sanitized DOCX. Must be non-empty. level: Sanitization depth (1, 2, or 3). Default 1. redact_authors_as: Replacement author string for level 2+. Default "Anonymous".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_pathYes
levelNo
redact_authors_asNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Without annotations, the description discloses detailed behavior (levels of sanitization, specific XML elements affected) and parameter defaults. Missing details on file format assumption (DOCX implied), whether original is preserved, and error handling. Overall good 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.

Conciseness5/5

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

Description is concise with a clear structure: action sentence, bullet list for levels, then parameter list. Every sentence adds value with no redundancy. Well-organized and efficient.

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?

Covers purpose, parameters, and levels thoroughly. With an output schema present, return value explanation is unnecessary. Minor gaps: no mention of required file format or success/failure conditions. Still largely complete.

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

Parameters5/5

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

Schema coverage is 0%, but description provides full parameter semantics: output_path must be non-empty, level depth with default 1, redact_authors_as default 'Anonymous'. This adds significant value beyond the schema's titles and types.

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?

Description clearly states the tool writes a sanitized copy, specifies it operates on the open document, and details three levels of metadata removal. This distinguishes it from siblings like redact_text or scrub_pii which handle different data.

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?

No explicit guidance on when to use this tool versus alternatives. The description implies usage for sanitizing metadata before sharing, but lacks direct comparisons or conditions. Adequate but could be improved.

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/SecurityRonin/docx-mcp'

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