Skip to main content
Glama

humanizer_save_document

Save rewritten Markdown text to a .docx, .pdf, .md or .txt file, optionally preserving the original DOCX styles and protecting the source file from being overwritten.

Instructions

Write rewritten Markdown text to a .docx, .pdf, .md or .txt file.

Args: text: The rewritten document as Markdown (headings with #, one blank line between paragraphs). output_path: Absolute path ending in .docx, .pdf, .md or .txt. source_path: Optional original file. If it is a DOCX with the same structure, its styles are kept. overwrite: Replace an existing output file. The source file is never overwritten.

Input Schema

NameRequiredDescriptionDefault
textYes
overwriteNo
output_pathYes
source_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/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 behavioral burden but does well: it discloses that a same-structure DOCX source is used purely to inherit styles, that overwrite replaces an existing output, and — critically for safety — that the source file is never overwritten. It omits error/failure behavior and what the tool returns, which are the main remaining gaps for a write operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded one-line purpose followed by a compact per-argument block; every line adds information (format constraints, style inheritance, overwrite safety) rather than restating the schema. No padding or redundancy.

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?

There is no output schema, so the description would ideally state what is returned (e.g., the written path or a confirmation), and it says nothing about directory-creation or failure modes. Otherwise it is complete enough for an agent to call the tool correctly, with format, path, style, and overwrite semantics all covered.

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%, yet the description documents all four parameters: text including its Markdown conventions (# headings, blank line between paragraphs), output_path as absolute with a required extension, source_path as optional with the DOCX style-inheritance condition, and overwrite as replacement of an existing output. This fully compensates for the schema's silence.

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 opens with a specific verb and resource — 'Write rewritten Markdown text to a .docx, .pdf, .md or .txt file' — and enumerates the supported formats, so an agent immediately knows the operation. It does not, however, distinguish itself from sibling write paths such as humanizer_humanize_file, leaving the boundary implicit.

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

Usage Guidelines3/5

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

Usage is only implied: the phrase 'rewritten Markdown text' signals this is a final persistence step after rewriting, and the source_path note hints at a preserve-formatting workflow. There is no explicit statement of when to prefer this over humanizer_humanize_file or humanizer_extract_document, and no stated prerequisites.

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