Skip to main content
Glama
chyinan

MCP Word Commander

by chyinan

add_formatted_paragraph

Append a paragraph with specified font, size, styling, alignment, indentation, and line spacing to a Word document.

Instructions

向文档追加带有特定样式的段落。支持设置中文字体(如宋体/黑体)。

Args: file_path: 文档路径 text: 段落内容 font_name: 字体名称 (默认 "SimSun" 即宋体, 可选 "Microsoft YaHei", "Times New Roman" 等) font_size: 字号 (pt) is_bold: 是否加粗 alignment: 对齐方式 ("LEFT", "CENTER", "RIGHT", "JUSTIFY") indent_first_line: 首行缩进字符数 (例如 2.0 代表缩进两个字符) line_spacing: 行距 (pt),例如 20.0 代表固定值20磅

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
is_boldNo
alignmentNoLEFT
file_pathYes
font_nameNoSimSun
font_sizeNo
line_spacingNo
indent_first_lineNo

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 the full burden. It explains the tool's primary action and parameters, but does not disclose side effects (e.g., file modification, permissions, idempotency) or error handling. The behavior is adequately described at a high level.

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?

The description is concise, with a brief introductory sentence followed by a clean Args list. Each parameter is explained in one line. No redundant information. Could be slightly more streamlined but is effective.

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?

Given an output schema exists, return values are covered. However, the description does not address prerequisites (e.g., file must exist), error conditions, or how the tool interacts with the document (e.g., whether it creates a new paragraph or modifies existing). It is adequate for simple use but lacks depth for complex scenarios.

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?

With 0% schema description coverage, the description compensates well. It explains each parameter with meaning and examples (e.g., font_name includes 'SimSun' and alternatives, alignment lists options, indent_first_line as character count). This adds significant value beyond the schema's raw type and defaults.

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 it appends a paragraph with specific formatting to a document, using a specific verb '追加' (append) and resource '段落' (paragraph). This distinguishes it from siblings like insert_paragraph_after or replace_paragraph, which have different positioning.

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 implies usage for adding a formatted paragraph at the end of a document, but does not explicitly state when to use this tool versus siblings like insert_paragraph_after (which inserts at a specific location) or replace_paragraph. No guidance on prerequisites or context is provided.

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/chyinan/MCP-Word-Commander'

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