Skip to main content
Glama

Document Comparator

compare_documents

Analyze document changes by comparing original and revised versions to identify semantic differences including additions, deletions, and modifications.

Instructions

Compare two versions of a document and produce a semantic diff with additions, deletions, and modifications. Works with contracts, READMEs, policies, essays, or any text. Powered by Claude.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
originalYesThe original version of the document
revisedYesThe revised version of the document
modeNoOutput formatstructured
contextNoDocument type for more relevant analysis
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively explains the output format (semantic diff) and implies read-only behavior through the verb 'compare,' but fails to confirm idempotency, side effects, rate limits, or whether the comparison is performed locally or via external API (despite 'Powered by Claude' hinting at the latter).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

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

The three-sentence structure is well-organized: functionality first, applicable domains second, implementation detail third. 'Powered by Claude' earns its place by signaling AI-powered semantic analysis rather than simple text diffing. Only minor efficiency could be gained by merging the document types into the first sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the absence of annotations and output schema, the description adequately explains the return concept (semantic diff with specific change types) for this 4-parameter tool. However, it omits error handling behaviors, size limitations, or specific return structure details that would be necessary for a complete operational picture.

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

Parameters3/5

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

Schema coverage is 100%, so the baseline is 3. The description adds semantic value by mapping 'two versions' to original/revised parameters and listing document types (contracts, READMEs) that contextualize the 'context' parameter. It does not add format details or syntax beyond what the schema already provides.

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 specific action (compare), resource (document versions), and output type (semantic diff with additions, deletions, modifications). It effectively distinguishes from siblings like extract_contract_clauses or convert_markdown by emphasizing differential analysis rather than extraction or format conversion.

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 implied usage guidance by listing applicable document types (contracts, READMEs, policies, essays), helping the agent understand appropriate contexts. However, it lacks explicit when-to-use/when-not-to-use rules or named alternatives for scenarios requiring different comparison approaches.

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/marras0914/agent-toolbelt'

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