Skip to main content
Glama

word_add_paragraph

Append a new paragraph to an existing Word (.docx) document. Provide text and optional style; returns the index of the added paragraph.

Instructions

Append a paragraph to the body of the document.

Args: path: Path to an existing .docx. text: Text for the new paragraph. An empty string is accepted and produces an empty paragraph. style: Optional built-in style name (e.g. "Intense Quote"). folder: Optional base folder for relative paths.

Returns: {"index": <n>} where <n> is the index of the newly appended paragraph.

Raises: OfficeMCPError: ERR_FILE_NOT_FOUND if the file is missing, ERR_INVALID_PARAMS for bad text type or unknown style, ERR_UNSUPPORTED_FMT for non-.docx extensions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
textYes
styleNo
folderNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Without annotations, the description details behavior: accepts empty string for text, optional style and folder, returns index, and lists errors. It does not disclose side effects like file modification but is otherwise transparent.

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?

The description is concise, well-structured with Args, Returns, Raises sections, and every sentence adds value without redundancy.

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 tool with 4 parameters, 2 required, and an output schema, the description covers purpose, parameters, return format, and error conditions fully, leaving no gaps.

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 coverage is 0%, but the description explains all four parameters: path, text (including empty string), style (with example), and folder. This fully compensates for the lack of schema descriptions.

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?

The description clearly states 'Append a paragraph to the body of the document,' which is a specific verb and resource. It distinguishes itself from sibling tools like word_add_heading and word_add_image.

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?

The description does not provide explicit guidance on when to use this tool versus alternatives. It implies usage for adding a paragraph but lacks when-not or alternative suggestions.

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/gawirable/office-mcp'

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