Skip to main content
Glama
Open-Detector MCP

Open-Detector MCP

by eslam-allam

compare_texts

Compare two text versions to score AI-likelihood before and after, returning per-paragraph deltas plus improved and regressed counts so you can verify rewrites lowered the score.

Instructions

Score two versions of a text and report the before/after delta.

Paragraphs are paired by index, so use it for paragraph-level rewrites or in-place edits that preserve paragraph boundaries. Negative delta_ai_pct is an improvement. Also returns per-paragraph deltas and improved/regressed counts.

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": {
      "text_a": "<text_a>",
      "text_b": "<text_b>"
    },
    "name": "compare_texts"
  }
}

Input Schema

NameRequiredDescriptionDefault
text_aYes
text_bYes
exclude_referencesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonable work: it discloses the index-based paragraph pairing rule, that negative delta_ai_pct means improvement, and that per-paragraph deltas plus improved/regressed counts are returned. It omits cost/latency, any text length limits, and whether mismatched paragraph counts are tolerated or rejected.

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?

Three short sentences, front-loaded with the core action, followed by the applicability rule and then the output/interpretation notes. Dense but not padded; 'delta_ai_pct' is introduced without defining what the underlying AI score is, which is the one place a few words are missing rather than wasted.

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?

No output schema exists, and the description partly compensates by enumerating the return values (delta, per-paragraph deltas, improved/regressed counts). However, the undocumented exclude_references parameter and the unexplained nature of the underlying score leave real gaps for a three-parameter tool with zero schema documentation.

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% across three parameters, so the description must compensate, and it does not: text_a, text_b and especially exclude_references (defaulting to true) are never explained. The exclude_references flag is a behaviorally significant option whose effect on scoring is entirely undocumented. Only the return-value semantics are covered, not input semantics.

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?

The description states a concrete verb and resource: 'Score two versions of a text and report the before/after delta.' The term 'delta_ai_pct' reveals the score is an AI-detection percentage, though it is never stated outright, so the agent must infer the subject of the scoring. It is clearly a text-vs-text comparison rather than a file comparison, which implicitly separates it from compare_files, but no sibling is named.

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

Usage Guidelines4/5

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

'Use it for paragraph-level rewrites or in-place edits that preserve paragraph boundaries' gives an explicit usage condition, and the pairing-by-index constraint effectively states when not to use it (edits that move or merge paragraphs). It does not point to compare_files or detect_ai_text as alternatives, so routing between siblings is left partly to inference.

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