Skip to main content
Glama
chyinan

MCP Word Commander

by chyinan

📄 MCP Word Commander

强大的 Word 文档处理 MCP 服务器,支持图片读取/插入、表格操作等功能

Python License MCP

让 AI 助手直接读取、编辑和操作 Word 文档

English | 中文


📖 简介

MCP Word Commander 是一个基于 MCP (Model Context Protocol) 的 Word 文档处理服务,允许 AI 助手直接读取、编辑 Word 文档。

✨ 核心功能

功能模块

描述

🖼️ 图片处理

读取图片并直接展示给 AI、插入图片、删除/替换图片

📊 表格操作

读取表格、在指定位置插入表格、修改单元格、添加/删除行

📝 段落编辑

添加、替换、插入段落,支持完整的格式设置

🔍 搜索替换

在文档中搜索并替换文本


Related MCP server: Word Document MCP Server

📦 依赖

  • Python 3.10+

  • Docker(可选,用于容器化部署)

  • 详见 requirements.txt


🚀 快速开始

方式一:本地运行

# Windows
.venv\Scripts\activate
pip install -r requirements.txt
python server.py

# macOS / Linux
source venv/bin/activate
pip install -r requirements.txt
python server.py

方式二:Docker 部署

🐳 使用 Docker Compose(推荐)

# 构建并启动
docker-compose up -d --build

# 查看日志
docker-compose logs -f

# 停止服务
docker-compose down

🐳 使用 Docker 命令

# 构建镜像
docker build -t mcp-word-commander:latest .

# 运行容器(挂载本地 documents 目录)
docker run -it --rm \
  -v $(pwd)/documents:/documents \
  mcp-word-commander:latest

# Windows PowerShell
docker run -it --rm `
  -v ${PWD}/documents:/documents `
  mcp-word-commander:latest

方式三:在 Claude Desktop / Cursor 中配置

本地运行配置

{
  "mcpServers": {
    "word-commander": {
      "command": "python",
      "args": ["D:/Program/mcp_word_edit/server.py"],
      "env": {}
    }
  }
}

Docker 配置

{
  "mcpServers": {
    "word-commander": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-v", "D:/Documents:/documents",
        "mcp-word-commander:latest"
      ],
      "env": {}
    }
  }
}

⚠️ 注意:使用 Docker 时,文档路径需要是容器内的路径(如 /documents/example.docx),而非宿主机路径。


🛠️ 功能列表

📄 文档基础操作

工具

功能描述

create_new_document

创建新的空白 Word 文档

get_document_info

获取文档基本信息(段落数、表格数等)

read_document_structure

分段读取文档内容和样式

📝 段落操作

工具

功能描述

add_formatted_paragraph

在文档末尾添加带格式的段落

replace_paragraph

替换指定段落的内容

insert_paragraph_after

在指定段落后插入新段落

search_and_replace

搜索并替换文本

🖼️ 图片操作

工具

功能描述

get_images_info

获取文档中所有图片的元信息

read_images

🌟 读取图片并直接返回给 AI 查看

add_image

在文档末尾添加图片

insert_image_after_paragraph

在指定段落后插入图片

delete_image

删除指定索引的图片

replace_image

替换指定索引的图片

📊 表格操作

工具

功能描述

read_tables

读取表格内容

create_table_with_data

在文档末尾创建表格

insert_table_after_paragraph

在指定段落后插入表格

update_table_cell

修改表格单元格内容

add_table_row

向表格添加新行

delete_table_row

删除表格中的行

delete_table

删除整个表格


💡 使用示例

🖼️ 读取文档中的图片

# AI 可以直接"看到"文档中的图片
read_images("document.docx")

# 只读取第一张图片
read_images("document.docx", image_index=0)

📸 在指定位置插入图片

# 在第 3 段后插入图片,设置宽度为 4 英寸,居中对齐
insert_image_after_paragraph(
    file_path="document.docx",
    after_index=2,
    image_path="image.png",
    width_inches=4.0,
    alignment="CENTER"
)

📊 在指定位置插入表格

# 在第 5 段后插入 3x3 表格
insert_table_after_paragraph(
    file_path="document.docx",
    after_index=4,
    rows=3,
    cols=3,
    data=[
        ["姓名", "年龄", "城市"],
        ["张三", "25", "北京"],
        ["李四", "30", "上海"]
    ],
    header_bold=True
)

✏️ 修改表格单元格

# 修改第一个表格的 (1, 2) 单元格
update_table_cell(
    file_path="document.docx",
    table_index=0,
    row=1,
    col=2,
    new_text="新内容",
    font_name="Microsoft YaHei",
    font_size=12,
    is_bold=True
)

📁 项目结构

mcp_word_edit/
├── 📄 server.py           # MCP 服务器主文件
├── 📋 requirements.txt    # Python 依赖
├── 🐳 Dockerfile          # Docker 镜像配置
├── 🐳 docker-compose.yml  # Docker Compose 配置
├── 🚫 .dockerignore       # Docker 构建忽略文件
├── 📖 README.md           # 说明文档
└── 📂 documents/           # 文档目录(Docker 挂载点)

🐳 Docker 相关

💾 数据持久化

使用 Docker 时,建议将本地目录挂载到容器的 /documents 目录:

docker run -it --rm -v /path/to/your/docs:/documents mcp-word-commander:latest

📦 镜像信息

项目

详情

基础镜像

python:3.12-slim

预计大小

约 200MB

工作目录

/documents


⚡ 技术特点

特性

说明

🖼️ 图片直接展示

使用 MCP 的 Image 类型,AI 可以直接"看到"文档中的图片内容

🔤 支持中文字体

完整支持中文字体设置(宋体、黑体等)

📍 灵活的位置插入

支持在任意段落后插入图片和表格

📊 完整的表格操作

支持增删改查表格及其内容

🐳 Docker 支持

提供完整的容器化部署方案


🤝 贡献

欢迎提交 Issue 或 Pull Request!

在提交前,请确保:

  • ✅ 代码风格一致

  • ✅ 包含必要的说明文档

  • ✅ 通过相关测试


📜 许可证

本项目使用 MIT 许可证,详见 LICENSE 文件。



📄 MCP Word Commander (English)

A powerful Word document processing MCP server with image and table support

Python License MCP

Enable AI assistants to directly read, edit, and manipulate Word documents

中文 | English


📖 Overview

MCP Word Commander is a Word document processing service based on MCP (Model Context Protocol), enabling AI assistants to directly read and edit Word documents.

✨ Core Features

Module

Description

🖼️ Image Processing

Read images and display them directly to AI, insert/delete/replace images

📊 Table Operations

Read tables, insert tables at specific positions, modify cells, add/delete rows

📝 Paragraph Editing

Add, replace, insert paragraphs with full formatting support

🔍 Search & Replace

Find and replace text in documents


📦 Requirements

  • Python 3.10+

  • Docker (optional, for containerized deployment)

  • See requirements.txt for details


🚀 Quick Start

Option 1: Local Installation

# Windows
.venv\Scripts\activate
pip install -r requirements.txt
python server.py

# macOS / Linux
source venv/bin/activate
pip install -r requirements.txt
python server.py

Option 2: Docker Deployment

# Build and start
docker-compose up -d --build

# View logs
docker-compose logs -f

# Stop service
docker-compose down

🐳 Using Docker Command

# Build image
docker build -t mcp-word-commander:latest .

# Run container (mount local documents directory)
docker run -it --rm \
  -v $(pwd)/documents:/documents \
  mcp-word-commander:latest

# Windows PowerShell
docker run -it --rm `
  -v ${PWD}/documents:/documents `
  mcp-word-commander:latest

Option 3: Configure in Claude Desktop / Cursor

Local Configuration

{
  "mcpServers": {
    "word-commander": {
      "command": "python",
      "args": ["/path/to/mcp_word_edit/server.py"],
      "env": {}
    }
  }
}

Docker Configuration

{
  "mcpServers": {
    "word-commander": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-v", "/path/to/documents:/documents",
        "mcp-word-commander:latest"
      ],
      "env": {}
    }
  }
}

⚠️ Note: When using Docker, document paths should be container paths (e.g., /documents/example.docx), not host paths.


🛠️ Feature List

📄 Basic Document Operations

Tool

Function

create_new_document

Create a new blank Word document

get_document_info

Get basic document information (paragraph count, table count, etc.)

read_document_structure

Read document content and styles in segments

📝 Paragraph Operations

Tool

Function

add_formatted_paragraph

Add a formatted paragraph at the end of document

replace_paragraph

Replace content of a specific paragraph

insert_paragraph_after

Insert a new paragraph after a specific paragraph

search_and_replace

Search and replace text

🖼️ Image Operations

Tool

Function

get_images_info

Get metadata of all images in the document

read_images

🌟 Read images and return them directly for AI to view

add_image

Add image at the end of document

insert_image_after_paragraph

Insert image after a specific paragraph

delete_image

Delete image by index

replace_image

Replace image by index

📊 Table Operations

Tool

Function

read_tables

Read table content

create_table_with_data

Create table at the end of document

insert_table_after_paragraph

Insert table after a specific paragraph

update_table_cell

Modify table cell content

add_table_row

Add new row to table

delete_table_row

Delete row from table

delete_table

Delete entire table


💡 Usage Examples

🖼️ Read Images from Document

# AI can directly "see" images in the document
read_images("document.docx")

# Read only the first image
read_images("document.docx", image_index=0)

📸 Insert Image at Specific Position

# Insert image after paragraph 3, set width to 4 inches, center alignment
insert_image_after_paragraph(
    file_path="document.docx",
    after_index=2,
    image_path="image.png",
    width_inches=4.0,
    alignment="CENTER"
)

📊 Insert Table at Specific Position

# Insert a 3x3 table after paragraph 5
insert_table_after_paragraph(
    file_path="document.docx",
    after_index=4,
    rows=3,
    cols=3,
    data=[
        ["Name", "Age", "City"],
        ["John", "25", "Beijing"],
        ["Jane", "30", "Shanghai"]
    ],
    header_bold=True
)

✏️ Modify Table Cell

# Modify cell (1, 2) of the first table
update_table_cell(
    file_path="document.docx",
    table_index=0,
    row=1,
    col=2,
    new_text="New Content",
    font_name="Microsoft YaHei",
    font_size=12,
    is_bold=True
)

📁 Project Structure

mcp_word_edit/
├── 📄 server.py           # MCP server main file
├── 📋 requirements.txt    # Python dependencies
├── 🐳 Dockerfile          # Docker image configuration
├── 🐳 docker-compose.yml  # Docker Compose configuration
├── 🚫 .dockerignore       # Docker build ignore file
├── 📖 README.md           # Documentation
└── 📂 documents/          # Documents directory (Docker mount point)

🐳 Docker Information

💾 Data Persistence

When using Docker, mount a local directory to /documents in the container:

docker run -it --rm -v /path/to/your/docs:/documents mcp-word-commander:latest

📦 Image Details

Item

Details

Base Image

python:3.12-slim

Estimated Size

~200MB

Working Directory

/documents


⚡ Technical Features

Feature

Description

🖼️ Direct Image Display

Uses MCP's Image type, allowing AI to directly "see" image content in documents

🔤 Chinese Font Support

Full support for Chinese font settings (SimSun, SimHei, etc.)

📍 Flexible Position Insertion

Support inserting images and tables after any paragraph

📊 Complete Table Operations

Support CRUD operations for tables and their content

🐳 Docker Support

Complete containerized deployment solution


🤝 Contributing

Issues and PRs are welcome!

Before submitting, please ensure:

  • ✅ Code style consistency

  • ✅ Necessary documentation included

  • ✅ Related tests passed


📜 License

This project is licensed under the MIT License. See LICENSE for details.


Made with ❤️ for the MCP community

Available Tools

20 tools
add_formatted_paragraphA

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

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磅

ParametersJSON Schema
NameRequiredDescriptionDefault
textYes
is_boldNo
alignmentNoLEFT
file_pathYes
font_nameNoSimSun
font_sizeNo
line_spacingNo
indent_first_lineNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.8/5.0
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.

add_imageA

在文档末尾添加图片。

Args: file_path: 文档路径 image_path: 图片文件路径 (支持 PNG, JPG, GIF, BMP 等格式) width_inches: 图片宽度 (英寸),不指定则使用原始宽度 height_inches: 图片高度 (英寸),不指定则按宽度等比缩放 alignment: 对齐方式 ("LEFT", "CENTER", "RIGHT")

ParametersJSON Schema
NameRequiredDescriptionDefault
alignmentNoCENTER
file_pathYes
image_pathYes
width_inchesNo
height_inchesNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4/5.0
Behavior3/5

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

No annotations provided. The description discloses supported image formats (PNG, JPG, GIF, BMP) and the parameter behavior (default sizes), but does not mention side effects, error handling, or permission requirements. Adequate for a simple add operation.

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: a single sentence for the purpose, followed by a clean bullet list for parameters. No redundant information; every sentence adds value.

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?

The description covers the main functionality and parameter semantics. It does not mention return values (but output schema exists, so not required). It assumes basic knowledge of file paths. Sibling tools provide differentiation context. Complete enough for a straightforward add-image tool.

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 description coverage is 0%, so the description provides all parameter explanations. It adds meaning beyond schema types: clarifies that width/height defaults use original or scale proportionally, alignment options are 'LEFT', 'CENTER', 'RIGHT', and image_path lists supported formats.

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 starts with '在文档末尾添加图片。' which clearly states the action (add image) and the location (at the end of the document). It distinguishes from sibling tools like 'insert_image_after_paragraph' which inserts at a specific position.

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 by stating 'add at end of document', but does not explicitly guide when to use this tool versus alternatives like 'insert_image_after_paragraph' or 'replace_image'. No prerequisites or conditions are mentioned.

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

add_table_rowA

向表格中添加新行。

Args: file_path: 文档路径 table_index: 表格索引 (0-based) row_data: 新行的数据列表 position: 插入位置 (0-based),不指定则添加到末尾

ParametersJSON Schema
NameRequiredDescriptionDefault
positionNo
row_dataYes
file_pathYes
table_indexYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. It only states that a row is added and describes parameters, but does not disclose error handling, side effects, or whether the operation is destructive. This is insufficient for a mutation 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?

The description is concise: one line of purpose followed by a structured list of arguments. Every sentence adds value, and it is appropriately front-loaded.

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?

For a simple tool with an output schema, the description covers purpose and parameters adequately. However, it lacks details on error conditions or validation rules, which could be helpful for robust usage.

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 description coverage is 0%, but the description compensates by explaining all four parameters including their types and meaning (e.g., '0-based' indices, default position behavior). This adds significant value beyond the schema.

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 '向表格中添加新行' (add new row to table), which is a specific verb-resource combination. It effectively distinguishes from sibling tools like delete_table_row, update_table_cell, and create_table_with_data.

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 provides basic usage context but lacks explicit guidance on when to use this tool versus alternatives. No 'when not to use' or comparison with siblings is given, though the purpose is self-explanatory.

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

create_new_documentB

创建一个新的空白 Word 文档。

Args: file_path: 保存文档的路径 (例如: "output.docx")

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.4/5.0
Behavior2/5

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

No annotations exist, so the description must disclose behavioral traits. It only states creation, but omits potential side effects like overwriting existing files, permissions, or limitations. Minimal transparency.

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?

Compact two-sentence description with an args list. Efficient but could benefit from a more structured format. No extraneous content.

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?

Basic purpose is covered, and an output schema exists (not shown). However, missing details on return values, error conditions, and behavior if file already exists limit completeness for a creation tool.

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?

The single parameter 'file_path' has zero schema description coverage. The tool's description provides an example and meaning ('path to save the document'), adding significant clarity beyond the schema.

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 the tool creates a new blank Word document. Among sibling tools, no other tool creates a document from scratch, so it is well-distinguished.

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 guidance on when to use or not use this tool. No alternatives or prerequisites mentioned, leaving the agent without context for appropriate invocation.

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

create_table_with_dataA

在文档末尾创建一个表格并填充数据。

Args: file_path: 文档路径 rows: 行数 cols: 列数 data: 二维数组,包含要填充的数据 [['Header1', 'Header2'], ['Val1', 'Val2']] header_bold: 第一行是否加粗

ParametersJSON Schema
NameRequiredDescriptionDefault
colsYes
dataYes
rowsYes
file_pathYes
header_boldNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.8/5.0
Behavior3/5

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

The description explains the core behavior (creating and filling a table at end of document) and mentions the header_bold option. However, it lacks details on side effects (e.g., impact on existing content), error handling, or required permissions. Since no annotations are provided, the description carries the full burden, and it is adequate but not thorough.

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 extremely concise: a one-sentence summary followed by a bullet list of parameters. Every element is necessary and front-loaded, making it easy to scan.

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 that an output schema exists and the tool is relatively simple, the description adequately covers the action and parameters. It lacks error scenarios or validation details, but for a table creation tool, it is sufficiently complete.

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 provides brief explanations for all five parameters in the Args section, clarifying that data is a 2D array and header_bold controls first row bolding. This adds meaningful context beyond the bare schema, though constraints like data matching rows/cols are not mentioned.

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 the action: '在文档末尾创建一个表格并填充数据' (Create a table at the end of the document and fill with data). It specifies the resource (table) and location (end of document), distinguishing it from sibling tools like insert_table_after_paragraph.

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?

The description does not provide any guidance on when to use this tool versus alternatives (e.g., insert_table_after_paragraph, add_table_row). No usage context or exclusion criteria are given.

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

delete_imageB

删除文档中指定索引的图片。 使用 get_images_info 工具可以查看所有图片的索引。

Args: file_path: 文档路径 image_index: 要删除的图片索引 (0-based)

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYes
image_indexYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries full responsibility for behavioral transparency. It only states that the tool deletes an image, but lacks details on side effects (e.g., irreversible deletion), required permissions, or return value. The output schema may provide some info, but it is not shown. The description is insufficient for understanding the full impact of using this 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?

The description is very concise—three sentences with no redundancy. It front-loads the purpose, gives a usage hint, and then lists parameters. Every sentence earns its place.

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?

The tool is simple with two required parameters. The description covers the core use case but lacks information on return values (though output schema may exist) and behavioral implications. For a deletion tool, more context about irreversibility would improve completeness.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate. It adds only that image_index is 0-based, which is minimal. file_path is not explained beyond its name. This adds little value beyond the schema titles.

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 the tool deletes an image at a specified index in a document. It uses the verb 'delete' and specifies the resource as an image by index. This effectively distinguishes it from sibling tools like add_image, replace_image, etc.

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 provides a useful hint to use get_images_info to find image indices. However, it does not explicitly state when to use this tool versus alternatives, nor does it mention when not to use it (e.g., no prerequisites or conditions). The guidance is implicit but not comprehensive.

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

delete_tableC

删除文档中指定索引的表格。

Args: file_path: 文档路径 table_index: 要删除的表格索引 (0-based)

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYes
table_indexYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, description bears full burden but only states the basic operation. No mention of permanence, permissions, or side effects.

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?

Very short and no fluff, but could be better structured with front-loaded purpose and explicit parameter details.

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

Completeness2/5

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

Despite simple tool and existing output schema, description lacks error conditions, prerequisites, and behavioral context for a delete operation.

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

Parameters2/5

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

Schema coverage is 0%, and description only adds the note that table_index is 0-based. Does not explain file_path constraints or value ranges.

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?

Clearly states it deletes a table at a specified index in a document. Distinguishes from sibling tools like delete_table_row and delete_image.

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 guidance on when to use this tool versus alternatives. No prerequisites or exclusions mentioned.

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

delete_table_rowB

删除表格中的指定行。

Args: file_path: 文档路径 table_index: 表格索引 (0-based) row_index: 要删除的行索引 (0-based)

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYes
row_indexYes
table_indexYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description must fully disclose behavior. It states 'delete' but does not mention whether the operation is irreversible, if indices shift after deletion, or any return value. Output schema exists but is not referenced. For a destructive action, more transparency is needed.

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 extremely concise, consisting of a single line and a parameter list with definitions. No unnecessary text.

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

Completeness2/5

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

Given a destructive tool with 3 parameters and an output schema, the description should cover return value, preconditions, and error cases. It is incomplete, missing all such details, and the output schema is not leveraged.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must add meaning. It lists parameters and mentions '0-based' for indices, but does not provide additional context like file path format or constraints (e.g., row must exist). The description barely adds value beyond the schema.

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 the tool deletes a row from a table, distinguishing it from siblings like delete_table (deletes entire table) and add_table_row (adds row). The verb 'delete' and resource 'table row' are specific.

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 guidance is provided on when to use this tool versus alternatives, no prerequisites (e.g., table existence, valid row index), and no mention of when not to use it. The description lacks any usage context.

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

get_document_infoC

获取 Word 文档的基本信息概览,包括段落数、表格数、各段落的简要信息。 用于在读取完整内容前快速了解文档结构。

Args: file_path: 文档路径

Returns: JSON 格式的文档概览信息。

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

C2.9/5.0
Behavior2/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 states the tool returns a JSON overview but does not disclose any side effects, permissions needed, or detailed behavior (e.g., whether it is read-only). The behavioral description is minimal.

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 and structured with a main purpose line, an Args section, and a Returns section. It is front-loaded and contains no unnecessary words, though the parameter description is too brief.

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 that an output schema exists (though not shown), the description partially covers what is returned (paragraphs, tables, brief paragraph info). However, it lacks detail on the exact structure and omits whether other elements like images are included, leaving some gaps.

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

Parameters1/5

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

Schema description coverage is 0%, meaning the description must add meaning. It simply repeats the parameter name '文档路径' (file path) without providing any additional context, format, or example. The parameter is not explained beyond its existence in the schema.

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?

The description clearly states that the tool retrieves an overview of a Word document, including paragraph and table counts and brief paragraph info, which distinguishes it from other tools like read_document_structure that likely provide full content. However, it does not explicitly name the sibling alternative.

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 before reading full content ('用于在读取完整内容前快速了解文档结构'), which provides a usage context. It does not mention when not to use or explicitly compare to sibling tools, leaving some ambiguity.

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

get_images_infoA

获取 Word 文档中所有图片的元信息,不返回图片内容。 用于在读取图片前了解文档中图片的结构和位置。

Args: file_path: 文档路径 include_tables: 是否包含表格中的图片 (默认True)

Returns: JSON 格式的图片元信息列表。

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYes
include_tablesNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.3/5.0
Behavior3/5

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

Discloses it returns metadata, not content. With no annotations, this is adequate but lacks details on error handling or performance considerations. For a simple read tool, it sufficiently covers core behavior.

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?

Extremely concise (3 sentences in description, plus Args/Returns), front-loaded with purpose. Every sentence adds value with no redundancy.

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 output schema exists, the description is sufficiently complete for its purpose. Returns JSON list of metadata. Minor gap: no mention of file format validation or error states, but acceptable for this tool.

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 description adds meaningful explanations for both parameters: file_path is document path, include_tables includes table images with default true. Bridges all gaps.

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?

Clearly states it retrieves metadata (not content) from Word document images. Differentiates from sibling 'read_images' by explicitly noting no image content returned.

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?

Explicitly states intended use: '用于在读取图片前了解文档中图片的结构和位置' (use before reading images). Provides clear context but no explicit when-not or alternative tools.

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

insert_image_after_paragraphA

在指定段落之后插入图片。

Args: file_path: 文档路径 after_index: 在此段落索引之后插入 (0-based) image_path: 图片文件路径 width_inches: 图片宽度 (英寸) height_inches: 图片高度 (英寸) alignment: 对齐方式 ("LEFT", "CENTER", "RIGHT")

ParametersJSON Schema
NameRequiredDescriptionDefault
alignmentNoCENTER
file_pathYes
image_pathYes
after_indexYes
width_inchesNo
height_inchesNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.5/5.0
Behavior2/5

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

No annotations exist, so the description carries full burden. It fails to disclose error handling, side effects (e.g., mutation), or dependencies like file existence, leaving significant gaps in behavioral understanding.

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 single purpose line followed by a clean parameter list. It is front-loaded with the main action, but the bilingual mix may slightly reduce clarity for non-Chinese readers.

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

Completeness2/5

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

Given 6 parameters and no output schema details, the description omits usage context, error conditions, and behavioral constraints (e.g., valid indices). Sibling tools exist but no comparative guidance is provided.

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 coverage, the description compensates by explaining each parameter's purpose, units (inches for dimensions), and allowed values for alignment. However, it could detail default behavior when width/height are null.

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 explicitly states the action (insert image) and the resource (after a specified paragraph), clearly distinguishing it from sibling tools like 'add_image' or 'insert_paragraph_after'.

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 in document editing scenarios but provides no explicit when-to-use guidance or differentiation from alternatives such as 'add_image' or 'insert_table_after_paragraph'.

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

insert_paragraph_afterB

在指定段落之后插入新段落。

Args: file_path: 文档路径 after_index: 在此段落索引之后插入 (0-based) text: 新段落内容 font_name: 字体名称 font_size: 字号 (pt) is_bold: 是否加粗 alignment: 对齐方式 indent_first_line: 首行缩进字符数 line_spacing: 行距 (pt)

ParametersJSON Schema
NameRequiredDescriptionDefault
textYes
is_boldNo
alignmentNoLEFT
file_pathYes
font_nameNoSimSun
font_sizeNo
after_indexYes
line_spacingNo
indent_first_lineNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.4/5.0
Behavior2/5

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

No annotations exist, so the description must fully disclose behavior. It mentions insertion but lacks details on side effects (e.g., shifting indices, file saving) or error handling. The operational impact is not clearly communicated.

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, listing parameters with explanations in a structured format. It front-loads the purpose. However, the line-by-line list could be more streamlined for an agent, but it is not overly verbose.

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 the tool's complexity (9 parameters, write operation) and the existence of an output schema, the description covers parameter semantics but misses error conditions, prerequisites, and context relative to sibling tools. It is adequate but not comprehensive.

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 adds significant value by explaining each parameter's role (e.g., 'after_index: 0-based index to insert after'). However, it omits constraints like file_path validity and index bounds, so it's not perfect.

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 the action ('insert') and the resource ('paragraph after the specified paragraph'). It effectively differentiates from sibling tools like 'add_formatted_paragraph' and 'replace_paragraph' by focusing on insertion at a specific index.

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 guidance on when to use this tool versus alternatives (e.g., 'add_formatted_paragraph' for different formatting needs). No prerequisites or context provided, such as the document needing to exist or the after_index must be within bounds.

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

insert_table_after_paragraphB

在指定段落之后插入表格。

Args: file_path: 文档路径 after_index: 在此段落索引之后插入表格 (0-based) rows: 表格行数 cols: 表格列数 data: 二维数组,包含要填充的数据 [['Header1', 'Header2'], ['Val1', 'Val2']] header_bold: 第一行是否加粗 (默认True) style: 表格样式 (默认 "Table Grid")

ParametersJSON Schema
NameRequiredDescriptionDefault
colsYes
dataYes
rowsYes
styleNoTable Grid
file_pathYes
after_indexYes
header_boldNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It does not mention potential errors (e.g., invalid after_index), side effects on existing content, required permissions, or the return value. Only the basic action is described.

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 and starts with a clear purpose sentence, followed by a well-structured args list. It is appropriately sized for the complexity, though some parameter descriptions repeat default information that is already in the schema.

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?

Output schema exists but the description does not mention what the function returns (e.g., the created table object). Additionally, error handling and edge cases (e.g., out-of-bounds after_index) are not covered. For a 7-parameter tool, the description is adequate but has notable gaps.

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 description coverage is 0%, but the description explains each parameter in Chinese, adding meaning beyond the schema's type and default values. For example, it clarifies that after_index is 0-based, data is a 2D array, and includes defaults for header_bold and style. This compensates well for the lack of schema descriptions.

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?

The description clearly states the purpose: inserting a table after a specified paragraph. The verb 'insert' and resource 'table' are specific. However, it does not explicitly distinguish itself from sibling tools like 'create_table_with_data' or 'add_table_row', which could cause confusion about when to use each.

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 guidance is provided on when to use this tool versus alternatives. There is no mention of exclusions, prerequisites, or scenarios where other tools might be more appropriate. The description only explains the tool's action.

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

read_document_structureA

分段读取 Word 文档的内容和样式信息。支持分页读取大文档。

Args: file_path: 文档路径 start_index: 从第几个段落开始读取 (0-based) limit: 最多读取多少个段落 (默认50) include_empty: 是否包含空段落 (默认False)

Returns: JSON 格式的字符串,包含段落文本和对应的样式信息。

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
file_pathYes
start_indexNo
include_emptyNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.9/5.0
Behavior3/5

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

No annotations provided, so the description carries full burden. It mentions paginated reading and return type (JSON string with text and style), but does not disclose potential side effects, error conditions, or authorization requirements. The read-only nature is implied but not explicit.

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?

Extremely concise: two short paragraphs, the first states the purpose, the second lists parameters. Every sentence is functional and earns its place. No wasted words.

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 and existence of an output schema, the description sufficiently describes the tool's capability and return format (JSON with text and style). It does not detail the output schema, but that is expected to be defined separately. Minor omission: lacks description of what 'style information' includes.

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 description coverage is 0%, but the description adds clear meaning for all four parameters, including defaults, 0-based indexing for start_index, and explanation of include_empty. This goes well beyond the schema which only provides type and 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?

The description clearly states the tool reads Word document content and style information in segments, with explicit verb ('读取') and resource ('Word 文档'). It distinguishes itself from sibling tools that are write operations (e.g., add, delete, replace) by focusing on reading.

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 guidance on when to use this tool versus sibling read tools (e.g., get_document_info, read_images, read_tables). No exclusions or when-not-to-use information provided.

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

read_imagesA

读取 Word 文档中的图片,直接返回给 AI 查看。

Args: file_path: 文档路径 image_index: 指定读取第几张图片 (0-based),不指定则读取所有图片 include_tables: 是否包含表格中的图片 (默认True)

Returns: Image 对象列表,AI 可以直接"看到"这些图片。 如果发生错误,返回错误信息字符串。

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYes
image_indexNo
include_tablesNo

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description should disclose behavioral traits. It states the return type (Image objects or error string) and mentions parameters like include_tables, but lacks details on side effects, performance, or what the Image object contains. Adequate but not comprehensive.

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 with a clear Args/Returns structure. Every sentence adds value, no redundancy, and the main purpose is front-loaded.

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?

The description covers main functionality, parameter details, return type, and error handling. It explains default behavior for image_index and include_tables. Some information about the Image object format is missing, but acceptable without output schema.

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?

The description explains all three parameters with clear semantics: file_path as document path, image_index as 0-based optional index, include_tables with default True. Since schema had 0% description coverage, this fully compensates.

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 the tool reads images from Word documents and returns them directly for AI viewing. The verb 'read' and resource 'images' are specific, and it distinguishes from siblings like get_images_info (metadata) and read_tables (tabular data).

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 explicit guidance on when to use this tool versus alternatives like get_images_info or read_document_structure. The description does not provide context for when to choose this over siblings or any exclusion criteria.

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

read_tablesB

读取 Word 文档中的表格内容。

Args: file_path: 文档路径 table_index: 指定读取第几个表格 (0-based),不指定则读取所有表格

Returns: JSON 格式的表格数据。

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYes
table_indexNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.4/5.0
Behavior2/5

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

No annotations provided, so description must fully disclose behavior. It states returns JSON table data but omits details like how missing table index is handled, performance implications, error behavior, or data format specifics. This is insufficient for a no-annotation tool.

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?

Description is concise with three main lines, then numbered Args/Returns. Front-loaded with purpose. Could be slightly more compact but overall efficient.

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?

Output schema exists but is not shown; description notes JSON return format. For a tool with no annotations, it should mention potential errors, supported document formats, or edge cases. However, given output schema likely covers structure, description is minimally adequate but not comprehensive.

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 adds meaningful explanations for both parameters: file_path is document path, table_index specifies which table (0-based) or all if omitted. Default behavior of table_index (null means all) is implied. Adds value beyond the raw schema.

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 the tool reads table content from a Word document, including both the verb 'read' and the resource 'tables'. It distinguishes from sibling tools like read_document_structure, get_images_info, etc., which perform different operations.

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 guidance on when to use this tool versus alternatives. The description does not mention prerequisites, when not to use it, or mention sibling tools. Implicit usage is clear but lacks explicit direction.

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

replace_imageC

替换文档中指定索引的图片。 使用 get_images_info 工具可以查看所有图片的索引。

Args: file_path: 文档路径 image_index: 要替换的图片索引 (0-based) new_image_path: 新图片文件路径 width_inches: 新图片宽度 (英寸),不指定则使用原图片尺寸 height_inches: 新图片高度 (英寸)

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYes
image_indexYes
width_inchesNo
height_inchesNo
new_image_pathYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the burden of behavioral disclosure. It states that width and height are optional and default to original if not specified. However, it does not mention what happens on invalid indices, missing files, or whether the operation is destructive. This is insufficient for a mutation tool.

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 and includes a helpful note about get_images_info. It is front-loaded with the purpose and argument list. No superfluous content.

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

Completeness2/5

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

Given the presence of an output schema, return values need not be detailed. However, the description lacks error handling, side effects, and prerequisites (except get_images_info). For a document modification tool, more context is needed for safe usage.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate. It lists parameters but adds minimal semantics: image_index is 0-based, width_inches defaults to original. The file_path and new_image_path are not described beyond names. For 5 parameters, this is inadequate.

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?

The description clearly states the tool's purpose: replacing an image at a specified index in a document. It also suggests using get_images_info to find indices, which adds context. However, it does not explicitly distinguish from siblings like delete_image or insert_image_after_paragraph, though 'replace' is distinct enough.

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 by mentioning the need to know the image index via get_images_info. It does not specify when not to use this tool or mention alternative tools like delete_image or insert_image_after_paragraph. More explicit guidance would improve clarity.

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

replace_paragraphA

替换指定段落的内容,并应用新的格式。

Args: file_path: 文档路径 paragraph_index: 要替换的段落索引 (0-based) new_text: 新的段落内容 font_name: 字体名称 font_size: 字号 (pt) is_bold: 是否加粗 alignment: 对齐方式 indent_first_line: 首行缩进字符数 line_spacing: 行距 (pt)

ParametersJSON Schema
NameRequiredDescriptionDefault
is_boldNo
new_textYes
alignmentNoLEFT
file_pathYes
font_nameNoSimSun
font_sizeNo
line_spacingNo
paragraph_indexYes
indent_first_lineNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.6/5.0
Behavior3/5

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

The description discloses that the tool modifies content and formatting, indicating a write operation. However, no details are given about side effects, return values, or error handling. With no annotations provided, the description carries the full burden but only partially fulfills it.

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 structured with a clear purpose line followed by a parameter list. It is not overly verbose, but the parameter list somewhat duplicates schema information. The first sentence front-loads the core action.

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?

While parameter explanations are provided, the description omits important context such as return value, error scenarios (e.g., invalid paragraph index), and file handling requirements. Given the tool's complexity and lack of annotations, more completeness is needed.

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?

The 'Args' section provides Chinese explanations for each parameter, adding unit information (e.g., font size in pt, indent in characters) that is not present in the schema titles. This compensates for the schema's lack of descriptions, though some explanations are merely translations of parameter names.

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 '替换指定段落的内容,并应用新的格式' (Replace content of specified paragraph and apply new formatting), specifying the verb and resource. It distinguishes from siblings like insert_paragraph_after and delete_table by focusing on replacement of an existing paragraph by index.

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 guidance is provided on when to use this tool versus alternatives. There is no mention of prerequisites, error conditions, or situations where other tools (e.g., search_and_replace) would be more appropriate.

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

search_and_replaceB

在文档中搜索并替换文本(保持原有格式)。

Args: file_path: 文档路径 search_text: 要搜索的文本 replace_text: 替换为的文本 match_case: 是否区分大小写 (默认True)

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYes
match_caseNo
search_textYes
replace_textYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided. The description mentions preserving formatting, but does not disclose other behavioral traits like side effects, error conditions, or permissions required.

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 and includes a structured args list. The purpose is front-loaded, but the format is somewhat informal.

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 the 4 parameters and lack of annotations, the description provides adequate parameter explanations but lacks usage context, error handling, and return value details despite an output schema existing.

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 description coverage is 0%, so the description adds significant meaning. It explains each parameter's purpose and includes default behavior for match_case, which is helpful beyond the bare schema.

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?

The description clearly states the tool performs search and replace while preserving formatting. It uses a specific verb and resource, but does not explicitly differentiate from sibling tools like replace_paragraph.

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 guidance on when to use this tool versus alternatives such as replace_paragraph or inserting text. The description lacks context for appropriate use cases.

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

update_table_cellB

修改表格中指定单元格的内容。

Args: file_path: 文档路径 table_index: 表格索引 (0-based) row: 行索引 (0-based) col: 列索引 (0-based) new_text: 新的单元格内容 font_name: 字体名称 (可选) font_size: 字号 pt (可选) is_bold: 是否加粗 (可选)

ParametersJSON Schema
NameRequiredDescriptionDefault
colYes
rowYes
is_boldNo
new_textYes
file_pathYes
font_nameNo
font_sizeNo
table_indexYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It only lists parameters without mentioning side effects, error conditions, or whether the modification is destructive. The description does not indicate what happens if the cell or file does not exist.

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 the purpose stated upfront followed by a parameter list. It could be slightly more streamlined by omitting the 'Args:' header, but overall it is efficient.

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

Completeness2/5

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

Given the tool's complexity (8 parameters, 5 required) and the presence of an output schema, the description still lacks completeness. It does not explain behavior for edge cases, potential errors, or that it modifies the document in place.

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 description coverage is 0%. The description adds minimal context by listing each parameter with a brief explanation (e.g., '0-based' indexing for indices). This adds value beyond the schema, but the descriptions are very basic and mostly repeat parameter names.

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 the tool's purpose: '修改表格中指定单元格的内容' (modify the content of a specified cell in a table). It specifies a specific verb and resource, and it is distinct from sibling tools like add_table_row or delete_table_row.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention any prerequisites, exclusions, or context for appropriate use.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 20 tool updatesv0.2.0
    • First observedadd_formatted_paragraph
    • First observedadd_image
    • First observedadd_table_row
    • First observedcreate_new_document
    • First observedcreate_table_with_data
    • First observeddelete_image
    • First observeddelete_table
    • First observeddelete_table_row
    • First observedget_document_info
    • First observedget_images_info
    • First observedinsert_image_after_paragraph
    • First observedinsert_paragraph_after
    • First observedinsert_table_after_paragraph
    • First observedread_document_structure
    • First observedread_images
    • First observedread_tables
    • First observedreplace_image
    • First observedreplace_paragraph
    • First observedsearch_and_replace
    • First observedupdate_table_cell

TDQS

A3.6/5.0
Disambiguation4/5

Tools cover distinct operations (add, create, delete, get, insert, read, replace, search, update) on different elements (paragraphs, images, tables, rows, cells). Some overlap between add_ and insert_ functions but descriptions clarify positional difference (end vs after specific index), making disambiguation manageable.

Naming Consistency5/5

All tool names follow a consistent verb_noun snake_case pattern (e.g., add_image, create_table_with_data, delete_table_row). Verbs are descriptive and nouns indicate target element. Minor exceptions like 'search_and_replace' are still clear and fit the pattern.

Tool Count4/5

20 tools is slightly above the typical recommended range but well-scoped for comprehensive Word document manipulation. Each tool serves a clear purpose and covers essential creation, reading, editing, and deletion operations across paragraphs, images, tables, and cells.

Completeness4/5

The tool set covers core CRUD operations for paragraphs, images, tables, and cells, plus document info and search/replace. Missing some advanced features like headers/footers, page setup, styles, or bookmarks, but the surface is sufficient for common document editing tasks.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • -
    license
    B
    quality
    Not graded
    maintenance
    Enables AI assistants to create, read, and manipulate Microsoft Word documents with comprehensive formatting, table creation, content management, and document protection capabilities. Supports advanced operations like merging documents, PDF conversion, and rich text formatting through a standardized interface.
    32
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to edit Microsoft Word documents live while they are open, with full support for tracked changes, comments, formatting, and 124 tools.
    201
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to create, edit, and extract data from Microsoft Word documents programmatically, supporting document creation, content editing, table manipulation, parameter extraction, and template generation.
    1
    MIT

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