Skip to main content
Glama
Alex-eng-ux

Office MCP Server

by Alex-eng-ux

Create Word Document

office_create_word
Destructive

Create Word documents with headings, paragraphs, lists, and tables. Specify file path and content blocks to generate .docx files.

Instructions

Create a new Word (.docx) document with rich content (headings, paragraphs, lists, tables).

Args:

  • filePath (string): Path where the document will be created

  • contents (array of content objects): Document content. Each content object has:

    • type: "paragraph" | "heading" | "bullet" | "numbered" | "table"

    • text: string (for paragraph, heading, bullet, numbered)

    • level: number (for heading: 1-3, for lists: 0-based level)

    • rows: string[][] (for table type)

    • bold: boolean (optional)

    • italic: boolean (optional)

  • title (string, optional): Document title

  • author (string, optional): Document author

Examples:

  • Use when: "Create a report document with headings and bullet points"

  • Use when: "Generate a Word document with a table of data"

  • Use when: "Write a meeting notes document"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesPath for the new Word document (e.g., './report.docx')
contentsYesArray of content blocks to include in the document
titleNoDocument title
authorNoDocument author name
Behavior3/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false, so agent knows it's a write operation. Description adds 'Create' and file path requirement but does not disclose potential file overwrite or permission needs. No contradiction.

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 compact with clear sections (Args, examples). Every sentence adds value, no redundancy. Well-structured for agent parsing.

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 4 parameters, nested objects, and no output schema, description adequately explains inputs and purpose. Examples cover common use cases. Slight gap: no mention of return value or error scenarios, but acceptable.

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% with descriptions for all parameters. Description adds human-readable explanation of the 'contents' array structure and optional parameters like title and author, providing beyond-schema value.

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 clearly states 'Create a new Word (.docx) document' with specific verb and resource. It lists supported content types (headings, paragraphs, lists, tables) and distinguishes from sibling tools for Excel, PowerPoint, etc.

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?

Provides 'Use when:' examples like 'Create a report document with headings and bullet points' which gives clear context. Lacks explicit when-not-to-use or alternative tools, but sibling tool names imply differentiation.

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/Alex-eng-ux/office-mcp-server'

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