Skip to main content
Glama

Humanize a document

humanize_document

Rewrite .docx/.pptx files to read human-written and score lower on AI detectors while preserving meaning, citations, tables, layout; optionally target only flagged AI-detection report passages.

Instructions

Rewrite a .docx or .pptx so it reads as human-written and scores lower on AI detectors, keeping meaning, citations, tables and layout. Optionally pass a Turnitin/iThenticate AI report, or passages of your own (segments), to rewrite only those. If a fresh report still flags the result, run this tool again on the rewritten file with that new report - only the still-flagged passages are touched, and balanced remains the right strategy for the second pass. Saves the result next to the source and returns its path. COSTS CREDITS at 100 per 1,000 words processed (10 minimum) - say so and get agreement first.

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": {
      "document_path": "<document_path>"
    },
    "name": "humanize_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
segmentsNoRewrite only these passages (optional), each copied exactly from the document, with its own min_words/max_words if wanted. Alone they set the scope; with report_path, take them from read_detection_report. A paragraph is the smallest unit: each passage is widened to its whole paragraph, and billed as such. Word bounds are experimental, same caveat as min_words. Cannot combine with the whole-document min_words/max_words.
strategyNoRewriting intensity; balanced is the usual first choice, aggressive rewrites more heavily
max_wordsNoUpper word bound for the rewritten document (optional; omit for no limit). Same experimental caveat and exclusivity as min_words.
min_wordsNoLower word bound for the rewritten document (optional; omit for no limit). Experimental - a word limit noticeably weakens AI-rate reduction, so omit unless the user requires a length. Cannot combine with report_path or segments.
output_pathNoWhere to write the result; defaults to beside the source
report_pathNoPath to a Turnitin/iThenticate AI report PDF; only its flagged passages are rewritten
instructionsNoExtra requirements for this job
wait_secondsNoHow long to wait before returning a job id (default 55)
document_pathYesAbsolute path to the .docx or .pptx to rewrite

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.7.0
    • changedInput schema / properties / segments / description
      Previous value: -"Per-passage word control (optional): each item is a flagged passage plus its own min_words/max_words. Get the passage texts from read_detection_report and pass report_path alongside so the report defines scope. Experimental, same caveat as min_words. Cannot combine with the whole-document min_words/max_words."New value: +"Rewrite only these passages (optional), each copied exactly from the document, with its own min_words/max_words if wanted. Alone they set the scope; with report_path, take them from read_detection_report. A paragraph is the smallest unit: each passage is widened to its whole paragraph, and billed as such. Word bounds are experimental, same caveat as min_words. Cannot combine with the whole-document min_words/max_words."
    • changedInput schema / properties / segments / items / properties / text / description
      Previous value: -"The exact flagged passage text to bound"New value: +"A passage, copied exactly from the document"
  2. Changed5 schema fields changedv1.4.0
    • addedInput schema / properties / max_words
      Added value: +{
      +  "description": "Upper word bound for the rewritten document (optional; omit for no limit). Same experimental caveat and exclusivity as min_words.",
      +  "exclusiveMinimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / min_words
      Added value: +{
      +  "description": "Lower word bound for the rewritten document (optional; omit for no limit). Experimental - a word limit noticeably weakens AI-rate reduction, so omit unless the user requires a length. Cannot combine with report_path or segments.",
      +  "exclusiveMinimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / segments
      Added value: +{
      +  "description": "Per-passage word control (optional): each item is a flagged passage plus its own min_words/max_words. Get the passage texts from read_detection_report and pass report_path alongside so the report defines scope. Experimental, same caveat as min_words. Cannot combine with the whole-document min_words/max_words.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "max_words": {
      +        "description": "Upper word bound for this passage once rewritten",
      +        "exclusiveMinimum": 0,
      +        "type": "integer"
      +      },
      +      "min_words": {
      +        "description": "Lower word bound for this passage once rewritten",
      +        "exclusiveMinimum": 0,
      +        "type": "integer"
      +      },
      +      "text": {
      +        "description": "The exact flagged passage text to bound",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / strategy / description
      Previous value: -"Rewriting intensity; balanced is the usual first choice"New value: +"Rewriting intensity; balanced is the usual first choice, aggressive rewrites more heavily"
    • changedInput schema / properties / strategy / enum
      Previous value: -[
      -  "conservative",
      -  "balanced",
      -  "aggressive",
      -  "balanced_v2",
      -  "aggressive_v2"
      -]New value: +[
      +  "balanced",
      +  "aggressive"
      +]
  3. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description goes far beyond by disclosing that credits are consumed at 100 per 1,000 words with a 10-credit floor, that agreement should be obtained first, that the result is saved beside the source and its path returned, and that a second pass only touches still-flagged passages.

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-loaded with the core action and preserved artifacts, then scoping options, then the retry recipe, with the credit warning last. Dense but nearly every clause carries information; the cost sentence is long and could be tightened, and the second-pass advice adds length that could sit in a separate line.

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?

For a 9-parameter mutation tool with no output schema, the definition covers what an agent needs: what is modified, what is preserved, where output lands, that a path is returned, that jobs may be issued via wait_seconds, and the credit cost. No material gap remains.

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 100%, so the baseline is 3, but the description adds real meaning: the report_path/segments scoping relationship, when to omit min_words, and the non-obvious point that balanced remains the correct strategy on a retry. It duplicates some schema text (report vs segments) rather than extending it, keeping this short of a 5.

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

Purpose5/5

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

States a concrete verb and resource ('Rewrite a .docx or .pptx so it reads as human-written and scores lower on AI detectors') with the preserved invariants spelled out (meaning, citations, tables, layout). This is plainly distinct from siblings like condense_document or translate_document, which change content or language rather than evasion signature.

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 rich in-tool routing: pass report_path or segments to scope the rewrite, otherwise the whole document; and on a still-flagged result, re-run on the rewritten file with the fresh report and keep strategy=balanced. It does not name competing siblings, but the use context and exclusions (min_words incompatible with report_path/segments) are explicit.

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