Skip to main content
Glama

Score text for AI writing

detect_ai_text
Read-only

Scores text with an AI-writing detector to estimate how much of it reads as machine-generated. Use it to check captions and copy against your target AI score before publishing.

Instructions

Scores text with the built-in AI-writing detector (desklib DeBERTa-v3 model, run on this computer): splits it into sentences, skips sentences under 5 words, and gives each an AI probability. The score is the mean over scored sentences, as a percentage; under the brand's ai_score_target is the goal. Score captions without their hashtags. The first use downloads the model once (about 1.7 GB).

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": "<text>"
    },
    "name": "detect_ai_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.3

TDQS

A4.3/5.0
Behavior5/5

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

Beyond readOnlyHint=true, the description discloses the model, that inference runs locally, the sentence-splitting behavior, the under-5-word skip rule, how the aggregate score is computed, and a one-time 1.7 GB download on first use. That download warning is exactly the kind of operational cost an agent cannot infer from annotations.

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 description is front-loaded with purpose and method, then moves to scoring mechanics, threshold guidance, and the download caveat. Every sentence contributes, though the parenthetical model/CPU detail and the download note make it denser than strictly needed for a one-parameter tool.

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

Completeness5/5

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

With no output schema, the description must explain the return value and does so precisely: a percentage mean over scored sentences, judged against ai_score_target. Combined with the preprocessing rule and first-use download warning, an agent has everything needed to call it correctly.

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

Parameters4/5

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

Schema coverage is 0% for the single 'text' parameter, so the description has to carry meaning, and it does: it clarifies that the input should be prose suitable for sentence splitting and that hashtags should be stripped for captions. It does not specify length limits or formatting constraints, which is a minor gap.

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 uses a specific verb and resource ('Scores text with the built-in AI-writing detector') and names the underlying model, so an agent knows exactly what is computed. It does not explicitly differentiate itself from the sibling ai_detector_status, but the contrast between scoring text and checking detector status is reasonably implicit.

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?

Usage is clear: send text, get a percentage, compare against the brand's ai_score_target. It adds a concrete edge-case rule, 'Score captions without their hashtags', which tells the caller how to preprocess input. It stops short of pointing to alternatives like ai_detector_status.

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