Skip to main content
Glama
Open-Detector MCP

Open-Detector MCP

by eslam-allam

detect_ai_file

Score a local paper file (.txt, .md, .tex, .docx, .pdf) paragraph by paragraph for AI-like writing style without loading it into context, returning ranked rewrite targets.

Instructions

Score a local paper (.txt, .md, .tex, .docx, .pdf) without loading it into context.

Args: path: Path to the file (~ is expanded). detail: 'paragraph' (default) or 'windows'. include_text: Include each paragraph's full text (large; usually use get_rewrite_plan or read_paragraphs instead). exclude_references: Drop the bibliography (default true).

DOCX body paragraphs and PDF page text are extracted; DOCX tables are skipped. Same response shape as detect_ai_text, plus source metadata.

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": "<path>"
    },
    "name": "detect_ai_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
detailNoparagraph
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 real work: it discloses extraction scope ('DOCX body paragraphs and PDF page text are extracted; DOCX tables are skipped') and that the file is not loaded into context. It does not cover failure modes (unsupported formats, encrypted/corrupt PDFs) or size limits, which matters for a file-reading tool.

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 one-line purpose, then uses a clean Args block with defaults and a short note on extraction scope. Every line is functional; the parenthetical aside about get_rewrite_plan/read_paragraphs is well-placed rather than wasted.

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 four-parameter tool with no annotations and no output schema, the description covers format support, extraction behavior, and parameter meanings, and it offloads return-value documentation by pointing to detect_ai_text's response shape plus source metadata. What remains unstated is the numeric meaning of the score and error handling for bad files.

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 description must compensate, and it does for all four parameters: path with tilde expansion, detail with its two allowed values (neither of which appears as an enum in the schema), include_text with a size warning plus redirect to better tools, and exclude_references with its default and meaning. The only minor gap is that 'windows' mode is not explained.

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 ('Score a local paper') and enumerates the supported formats (.txt, .md, .tex, .docx, .pdf), so an agent can distinguish it from detect_ai_text (which takes text directly). The 'without loading it into context' clause adds the key value proposition. It stops short of 5 because 'Score' is never defined as AI-detection scoring, which the agent must infer from the tool name.

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 explicit alternatives for the include_text option ('usually use get_rewrite_plan or read_paragraphs instead') and states defaults for detail and exclude_references. It never explicitly contrasts itself with detect_ai_text, leaving the file-vs-text selection implicit, so it falls short of full when/when-not guidance.

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