Skip to main content
Glama
Open-Detector MCP

Open-Detector MCP

by eslam-allam

get_rewrite_plan

Rank paragraphs in papers or drafts by AI-like writing score and get concrete style issues plus edit hints to prioritize rewriting.

Instructions

Rank the paragraphs most worth rewriting and explain what to change.

Pass exactly one of 'path' or 'text'. Returns the overall score plus targets sorted by ai_pct, each with full paragraph text, deterministic style issues (uniform sentence length, stock transitions, buzzwords, em dashes, etc.) and concrete hints. This is the best tool to start a humanization pass.

Args: path: Paper file (.txt/.md/.tex/.docx/.pdf). text: Text to analyse instead of a file. top_n: Maximum number of targets to return (default 5). min_ai_pct: Only include paragraphs at or above this score (default 50). include_text: Include each target's full text (default true). exclude_references: Drop the bibliography (default true).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_rewrite_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
textNo
top_nNo
min_ai_pctNo
include_textNo
exclude_referencesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real behavior: return shape (overall score plus targets sorted by ai_pct), default values, and that detected issues are deterministic. It stops short of stating that the operation is read-only with no file side effects, or noting anything about runtime or errors.

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?

Front-loads the purpose in one sentence, then the invocation rule, then the return description, then Args. The Args defaults duplicate what the schema already encodes, which is slight redundancy, but the overall structure is tight and scannable with no filler.

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?

For a 6-parameter tool with no output schema and no annotations, the description covers all inputs, the shape of the return, and the intended workflow entry point. Minor gaps remain: the scale/meaning of the 'overall score' and what happens on invalid or unsupported files are not addressed.

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

Parameters5/5

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

Schema description coverage is 0%, so the Args block does the entire job and does it well. It adds meaning beyond the bare schema titles: accepted file extensions for path, the semantics of 'at or above this score' for min_ai_pct, and 'Drop the bibliography' for exclude_references, plus the mutual-exclusion rule for path/text.

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 concrete verb and resource: rank paragraphs by worth-rewriting and explain the needed changes. It also positions itself in a workflow ('best tool to start a humanization pass'), which implicitly distinguishes it from the detection/read siblings, though it never names an alternative explicitly.

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?

Gives a hard invocation constraint ('Pass exactly one of path or text') and a clear entry-point recommendation for a humanization pass. It does not spell out when to skip this tool in favour of detect_ai_file or read_paragraphs, so there is no explicit when-not guidance.

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