# write_docx

Create or overwrite a document with plain text content.

Agent View of the PolicyLayer registry record for `write_docx`. HTML page: https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/write-docx

## Facts

- Tool: `write_docx`
- Server: Docx (`andrew82106/llm_docx_agent_mcp`) — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp.md
- Homepage: https://github.com/Andrew82106/LLM_Docx_Agent_MCP
- Risk category: Write (Medium risk)
- Registry record: grade D, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "write_docx",
    "arguments": {}
  }
}
```

## Why write_docx is rated Medium

This tool modifies files (creates new or overwrites existing Word documents) but changes are reversible through version control, backups, or re-editing. It does not delete files irreversibly (Destructive), execute arbitrary code (Execute), or handle financial transactions (Financial). Severity is medium because malicious use could corrupt important documents, but the impact is limited to a single file and reversible.

From the tool's own definition: "Tool name 'write_docx' and description 'Create or overwrite a document with plain text content' indicate document creation and modification capability. The 'overwrite' verb confirms reversible modification of existing files."

## Use case

AI agents use write_docx to create or update resources in Docx, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Docx environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Docx:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "write_docx": {
      "limits": [
        {
          "counter": "write_docx_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Docx (23)

- `delete_docx` — Destructive — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/delete-docx.md
- `extract_images` — Read — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/extract-images.md
- `get_document_properties` — Read — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/get-document-properties.md
- `get_equation` — Read — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/get-equation.md
- `health_check` — Read — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/health-check.md
- `list_content_controls` — Read — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/list-content-controls.md
- `list_docx` — Read — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/list-docx.md
- `list_equations` — Read — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/list-equations.md
- `list_images` — Read — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/list-images.md
- `list_merge_fields` — Read — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/list-merge-fields.md
- `list_styles` — Read — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/list-styles.md
- `read_docx` — Read — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/read-docx.md
- `add_image_caption` — Write — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/add-image-caption.md
- `append_docx` — Write — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/append-docx.md
- `apply_bullet_list` — Write — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/apply-bullet-list.md
- `apply_numbered_list` — Write — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/apply-numbered-list.md
- `apply_paragraph_style` — Write — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/apply-paragraph-style.md
- `copy_docx` — Write — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/copy-docx.md
- `create_docx` — Write — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/create-docx.md
- `fill_merge_fields` — Write — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/fill-merge-fields.md
- `insert_image` — Write — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/insert-image.md
- `set_document_properties` — Write — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/set-document-properties.md
- `set_list_level` — Write — https://policylayer.com/tools/andrew82106-llm-docx-agent-mcp/set-list-level.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=andrew82106-llm-docx-agent-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/andrew82106-llm-docx-agent-mcp
