Skip to main content
Glama

compare_documents

Read-only

Compare two DOCX files and generate a tracked-changes output document. Supports comparing revised files against originals or session edits.

Instructions

Compare two DOCX documents and produce a tracked-changes output document. Provide original_file_path + revised_file_path for standalone comparison, or file_path to compare session edits against the original.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
original_file_pathNoPath to the original DOCX file.
revised_file_pathNoPath to the revised DOCX file.
file_pathNoPath to the DOCX file.
save_to_local_pathYesPath to save the tracked-changes DOCX output.
authorNoAuthor name for track changes. Default: 'Comparison'.
engineNoComparison engine. Default: 'auto'.
Behavior2/5

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

The description says it 'produces a tracked-changes output document', implying a write operation (creating a new file). However, annotations mark readOnlyHint as true, which contradicts this behavior. No mention of permissions or side effects beyond file creation. The contradiction lowers 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, no unnecessary words, and efficiently communicates the tool's core behavior and parameter relationships. It is well-structured and easy to parse.

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 covers the main use cases and parameter options. However, it does not clarify behavior when both original_file_path/revised_file_path and file_path are provided, nor does it specify overwrite behavior for save_to_local_path. Given the moderate complexity (6 parameters, 2 modes), the description is largely complete but has minor gaps.

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?

The input schema already provides good descriptions for all 6 parameters (100% coverage). The description adds value by grouping original_file_path+revised_file_path and file_path as two distinct usage modes, which is not evident from individual schema descriptions. This extra context justifies a score above baseline.

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 compares two DOCX files and produces a tracked-changes output. It specifies two usage modes: standalone comparison with original and revised paths, or session edit comparison with a single file_path. This distinguishes it from sibling tools like extract_revisions or accept_changes.

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 provides explicit guidance on when to use original_file_path+revised_file_path versus file_path, but it does not advise when not to use the tool or suggest alternatives among siblings (e.g., extract_revisions). The guidance is present but limited.

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/UseJunior/safe-docx'

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