Skip to main content
Glama
yuque
by yuque

yuque_update_doc

Update an existing document in a Yuque knowledge base by specifying the repository and document ID, with optional changes to title, content, slug, or visibility.

Instructions

Update an existing document

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_idYesRepo ID or namespace (e.g., "mygroup/mybook")
doc_idYesDocument ID or slug
titleNoNew document title
slugNoNew document slug
bodyNoNew document content
formatNoContent format for body. Omit or use markdown to write through the YMD-compatible flow; use lake/html for the legacy document API.
publicNoPublic visibility: 0 (private) or 1 (public)
Behavior2/5

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

No annotations are present, so the description must disclose behavioral traits. It only says 'Update', which implies mutation but does not clarify destructive actions, permission requirements, or whether fields are merged or replaced.

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 a single sentence that is front-loaded and concise. However, it is so minimal that it misses context, but it earns points for brevity.

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?

With 7 parameters (2 required) and no output schema, the description is too brief. It does not explain return values, side effects, or usage prerequisites, leaving the agent underinformed.

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?

The input schema has 100% description coverage for all 7 parameters, so the schema provides adequate meaning. The description adds no additional parameter info, but the baseline of 3 is appropriate given full schema coverage.

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 'Update an existing document' clearly states the action and resource, and the tool name includes 'doc' which distinguishes it from other update tools like 'update_book'. However, it lacks specificity about what document fields are updated.

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 siblings like 'yuque_update_note' or 'yuque_update_book'. The description neither states the context nor provides exclusions.

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/yuque/yuque-mcp-server'

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