Skip to main content
Glama
Feishu MCP Server
by zjdx10

feishu_write_document_content

Write Markdown content into a Feishu document, appending to existing text or filling a new empty document, and return a link to open it.

Instructions

向飞书文档写入内容。支持 Markdown 格式:标题(#)、列表(-/*或数字)、普通段落。 如果文档是新建的空文档,内容会直接写入;如果文档已有内容,会追加到末尾。 返回文档链接供浏览器打开。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "document_id": "<document_id>",
      "content": "<content>"
    },
    "name": "feishu_write_document_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYes要写入的文本内容。支持简单 Markdown: - # 标题 - 空行分段 - - 或 * 开头的无序列表 - 数字开头的有序列表
document_idYes文档 ID(从 feishu_create_document 获取,或用已有文档的 ID)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the most important behavior: existing content is appended to, not overwritten, and the return is a document link. It omits permission/auth requirements, whether concurrent or repeated writes cause duplication, formatting loss on append, and rate limits — substantial gaps 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?

Three short sentences, front-loaded with purpose, then the conditional behavior, then the return value — no filler. The Markdown syntax enumeration partially duplicates the content parameter's schema description, which is mild redundancy but also the only place the write semantics are stated.

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?

A simple two-parameter tool with no output schema and no annotations; the description covers purpose, conditional behavior, content format, and the return value, which is enough for correct invocation. Auth/permission expectations and the effect on existing document structure on append remain unspecified.

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% and both parameters are documented in the schema, so the baseline is 3. The description adds meaning beyond the schema by clarifying the supported Markdown constructs and the write-vs-append effect that content has on an existing document, though it adds no constraints on content size or encoding.

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 gives a specific verb+resource (向飞书文档写入内容) and distinguishes write-mode semantics: direct write for an empty new document vs. append to the end for an existing one. It doesn't explicitly name feishu_create_document as the tool to use when a new document is needed, so the sibling boundary is only implicit.

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?

It clearly describes the two situations the tool handles (empty doc vs. doc with content), which functions as implied usage guidance. However, it never states when to use this instead of feishu_create_document or feishu_get_document, nor any prerequisites such as needing an existing document_id or edit permission.

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