Skip to main content
Glama

diff_to_text

Compare two DOCX files to produce a marked-up document with tracked changes and a plain-text summary of differences.

Instructions

Compare two separate DOCX files and produce a tracked-change DOCX plus a plain-text summary.

Use this when you have two distinct files (e.g. an original and a revised copy) and want to show what changed between them. Produces:

  1. A DOCX with tracked-change markup (deletions in red, insertions underlined).

  2. A .txt summary suitable for pasting into an email or pull-request description.

If you have already made tracked edits to the currently open document and just want to summarise those changes, use generate_change_summary instead.

Args: base_path: Path to the original DOCX. revised_path: Path to the revised DOCX. docx_output: Output path for the tracked-change DOCX (auto-generated if empty). text_output: Output path for the plain-text summary .txt (auto-generated if empty).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
base_pathYes
docx_outputNo
text_outputNo
revised_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided; description carries full burden. Discloses outputs (tracked-change DOCX, .txt summary) but does not mention side effects, file handling, or permissions. Adequate but lacks depth on behavior.

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?

Well-structured: purpose first, then usage guidelines, then parameter list. Every sentence adds value. No verbosity.

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 complexity of DOCX diffing and presence of output schema, description covers main outputs and auto-generation. Lacks details on limitations (e.g., file size, formatting preservation) but otherwise sufficient.

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 description must compensate. Lists all 4 parameters with brief explanations (e.g., 'base_path: Path to the original DOCX.'). Adds meaning beyond schema names.

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 'Compare two separate DOCX files and produce a tracked-change DOCX plus a plain-text summary.' It specifies verb, resource, and outputs. Distinguishes from sibling 'generate_change_summary' by contrasting use cases.

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

Usage Guidelines5/5

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

Explicitly states when to use: 'Use this when you have two distinct files...' and when not: 'If you have already made tracked edits... use generate_change_summary instead.' Provides clear alternative.

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

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