Skip to main content
Glama

create_document

Creates a new blank Word document or from a .dotx template, automatically opening it for immediate editing with text, tables, and other tools.

Instructions

Create a new blank .docx document (or from a .dotx template).

The document is automatically opened for editing after creation. Use save_document to save changes, or start editing immediately with insert_text, add_table, etc.

Args: output_path: Path for the new .docx file. template_path: Optional path to a .dotx template file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_pathYes
template_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses that the document is automatically opened for editing, but does not mention whether an existing file is overwritten or if there are error conditions, which is a notable gap for a creation tool.

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?

Description is concise with two paragraphs and four sentences. The first sentence states the core purpose, followed by useful behavioral context, then parameter descriptions. No extraneous information.

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?

Given low complexity (2 parameters, no enums) and presence of an output schema (not shown), the description covers the purpose, auto-open behavior, and both parameters. Missing overwrite behavior is a minor gap, but overall it adequately informs an agent.

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%, but description explains output_path as 'Path for the new .docx file' and template_path as 'Optional path to a .dotx template file', adding format details and optionality beyond the schema's minimal title.

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?

Description specifies 'Create a new blank .docx document (or from a .dotx template)', clearly stating the action and resource. This distinguishes it from siblings like create_from_markdown, which creates from markdown content.

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?

Description provides context that the document is automatically opened for editing, guiding subsequent steps. It implies usage for blank or template-based documents, but does not explicitly exclude when to use versus alternatives like create_from_markdown.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SecurityRonin/docx-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server