Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
read_documentA

读取 Word 文档(.docx)的全部段落。path 必须是绝对路径。

返回 JSON 数组,每段含 index(段落序号,编辑工具以此定位)、style(样式名)、 text(接受全部现有修订后的有效文本)。编辑前必须先读取文档。

replace_textA

以修订模式(Track Changes)替换文档中的文本。

修改不会直接生效,而是写成 Word 修订(删除线 + 下划线),由用户在 Word 审阅界面逐条接受/拒绝。old_text 在全文只出现一次时才会替换;出现多次时 需提供更长的唯一上下文,或明确 replace_all=True 全部替换。 new_text 传空字符串表示纯删除。

insert_paragraphA

在第 after_index 段(从 0 计,见 read_document)之后以修订方式插入新段落。

style 可选,填文档已有的段落样式名(如 "Heading 2")。

delete_paragraphA

以修订方式删除第 index 段(从 0 计,见 read_document)。

list_revisionsA

列出文档中现存的全部修订(含此前人工修订),返回 JSON。

用于编辑后自检,或向用户汇报"本次共产生了哪些修订"。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/leeyang0916/word-agent-mcp'

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