Skip to main content
Glama

Create Word Document

create_docx

Converts Markdown into a new DOCX file with headings, bullets, and paragraphs, saving it in allowed output directories. Use it to generate Word documents from structured text.

Instructions

Membuat file DOCX baru dari Markdown (heading #/##, bullet -, paragraf) di ALLOWED_OUTPUT_DIRS.

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": {
      "fileName": "<fileName>",
      "markdown": "<markdown>"
    },
    "name": "create_docx"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNameYesNama file tujuan (basename saja) di dalam ALLOWED_OUTPUT_DIRS.
markdownYes
overwriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare non-readOnly, non-destructive, non-idempotent, closed-world, so the safety profile is covered. The description adds one useful behavioral constraint — output is confined to ALLOWED_OUTPUT_DIRS — but says nothing about what happens when the target file already exists (the overwrite=false default implies failure or silent behavior that is never explained).

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?

A single compact sentence with the action front-loaded and the directory constraint trailing; no filler. It is appropriately sized for a three-parameter write tool, though parenthetical syntax detail slightly crowds the core statement.

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

Completeness3/5

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

For a file-writing tool with no output schema, the definition should state the result (returned path?) and the overwrite behavior. It covers the input syntax and output location but leaves those two gaps, which matter for correct invocation.

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

Parameters3/5

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

Schema coverage is only 33%, with only fileName documented. The description partly compensates by enumerating the accepted Markdown constructs, which clarifies what the markdown string may contain, and by echoing the ALLOWED_OUTPUT_DIRS constraint. However the overwrite parameter's semantics are left entirely undocumented in both schema and description.

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: creates a new DOCX file from Markdown, and names the source format's supported constructs (heading #/##, bullet -, paragraphs). It distinguishes itself from sibling readers (read_word, read_pdf) and from create_excel/create_pdf by naming the DOCX output, though it does not explicitly position itself against convert_document.

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

Usage Guidelines2/5

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

No when-to-use or when-not guidance is given. The agent must infer that this is for authoring a fresh DOCX from Markdown rather than converting an existing file (convert_document) or inspecting one (get_document_info); the description supplies no such routing signal or prerequisites.

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