Skip to main content
Glama

读取文档内容

yuque_get_doc
Read-only

Retrieve a Yuque document’s Markdown body and metadata by slug, document ID, or full URL. Use it to read document content for search, summarization, or processing workflows.

Instructions

读取一篇语雀文档的 Markdown 正文与元信息。doc 可以是文档 slug 或文档 id;也可以直接传语雀文档链接。

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": {
      "doc": "<doc>"
    },
    "name": "yuque_get_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
docYes文档 slug、文档 id,或形如 https://www.yuque.com/user/book/doc 的链接
formatNomarkdown:优先返回 Markdown 源文;lake:返回语雀富文本 HTMLmarkdown
book_idNo知识库 id;doc 传完整链接时可省略

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already establish readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds that both content and metadata are returned, but says nothing about permission requirements, missing or private documents, or size or truncation limits on large documents.

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 short sentences, front-loaded with the purpose before the argument note, with no filler. The second clause duplicates schema content, which slightly reduces its 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?

For a simple read-only tool with full schema coverage and complete annotations, the description covers purpose, return shape and accepted identifier forms. The remaining gap, namely error and permission behavior, is minor and partly beyond the description's scope.

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 the schema already documents doc, format and book_id in full. The description's remark that doc may be a slug, id or a full URL merely restates the schema, so it does not add meaning beyond it; baseline 3 applies.

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 uses a specific verb (读取) and resource (一篇语雀文档) and states what comes back (Markdown 正文与元信息). It is clearly distinct from siblings such as yuque_list_docs or yuque_get_toc, although it never names a sibling to make that contrast explicit.

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?

There is no when-to-use or when-not-to-use guidance, and no alternative is named. The only routing help is the note about how to supply the doc argument, which is argument handling rather than selection guidance.

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