Skip to main content
Glama

新建文档(需开启写入)

yuque_create_doc

Creates a new Markdown document in a specified Yuque knowledge base from a title and body, with optional slug. Writes require enabling YUQUE_ALLOW_WRITE=1.

Instructions

在指定知识库中新建一篇 Markdown 文档。默认禁用,需 YUQUE_ALLOW_WRITE=1。

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": {
      "book_id": "<book_id>",
      "title": "<title>",
      "body": "<body>"
    },
    "name": "yuque_create_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesMarkdown 正文
slugNo自定义 slug(可选)
titleYes文档标题
book_idYes目标知识库 id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

The annotations declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, but they do not disclose that the tool is disabled by default and requires enabling through an environment variable. The description adds that critical operational fact, which an agent must know before attempting a write. It does not say what happens when a title or slug collides, which is the main remaining behavioral gap.

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?

Two compact sentences with the core action first and the enabling prerequisite second; there is no wasted wording. The only slight weakness is that the text does not clarify whether the tool returns any identifier after creating the document.

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 four-parameter create tool with complete schema coverage and annotations that declare its safety profile, the definition covers what the agent needs to attempt the call, including the environment-variable gate. Because there is no output schema, it does not say what the call returns (document id, slug, URL), but this omission is minor.

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 100%, so all four parameters (book_id, title, body, slug) are already documented in the schema. The description only restates that the body is Markdown and that the document goes into a specified knowledge base, adding little beyond what the schema already defines. A score of 3 reflects the baseline for a fully documented 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 gives a specific verb and resource: creating a Markdown document in a designated knowledge base. This contrasts implicitly but clearly with sibling operations such as yuque_update_doc, and no ambiguity remains about whether the operation is a read or a write. The description does not explicitly name alternatives, but the 'create' operation disambiguates it.

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 definition supplies the key gating prerequisite: the tool is disabled by default and requires YUQUE_ALLOW_WRITE=1. However, it never states when to choose this tool over yuque_update_doc, or that this tool should not be used to modify existing documents. A user must infer usage from the verb alone.

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