Skip to main content
Glama
Open-Detector MCP

Open-Detector MCP

by eslam-allam

compare_files

Compare two paper files on disk to spot paragraph-level changes and confirm revisions lower AI-likelihood scores.

Instructions

Compare two versions of a paper on disk (e.g. original.docx vs revised.docx).

Same response as compare_texts. Paragraph counts should match for index pairing to be meaningful; the response warns when they differ.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path_a": "<path_a>",
      "path_b": "<path_b>"
    },
    "name": "compare_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
path_aYes
path_bYes
exclude_referencesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the index-pairing precondition and that a warning is emitted when paragraph counts differ, plus that output mirrors compare_texts, but says nothing about supported file types, missing/unreadable file behavior, or size limits.

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?

Two short sentences, front-loaded with the core action, followed by a caveat that earns its place. No padding or repetition.

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

Completeness2/5

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

No annotations, no output schema, and zero schema description coverage leave the definition thin: the exclude_references parameter is undocumented and file-handling expectations (formats, errors) are absent. The pairing caveat is helpful but not enough for a 3-param file-comparison tool.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate. It only implicitly maps to path_a/path_b via 'two versions of a paper on disk' and never mentions exclude_references, a default-true flag that silently changes what is compared — a meaningful gap for a 3-parameter tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: comparing two versions of a paper stored on disk, with a concrete example (original.docx vs revised.docx). The phrase 'on disk' implicitly separates it from compare_texts, though it never says so explicitly.

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 disk-based framing implies when to pick this over compare_texts, and the paragraph-count caveat tells the agent when results are meaningful. However, it never names an alternative or states an explicit condition for choosing one tool over the other.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.