Skip to main content
Glama

获取语雀文档

get-yuque-doc

Retrieve detailed information and content from Yuque documents using URL or namespace+slug, including metadata, author details, and full document content in Markdown or HTML format.

Instructions

从语雀 URL 或命名空间+slug 获取文档的详细信息。

支持的输入格式:

  1. 语雀 URL: https://www.yuque.com/username/repo/doc-slug

  2. 命名空间+Slug: 在 namespace 参数中指定 username/repo,在 slug 参数中指定文档 slug

返回的信息包括:

  • 文档基本信息(标题、ID、格式、字数等)

  • 作者信息

  • 知识库信息

  • 文档完整内容(Markdown 或 HTML)

  • 统计数据(浏览量、点赞数、评论数)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docUrlNo语雀文档 URL (例如: https://www.yuque.com/username/repo/doc-slug)
namespaceNo知识库命名空间 (例如: username/repo),如果提供了 docUrl 则忽略此参数
slugNo文档 slug,需要与 namespace 一起使用
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses key behavioral traits: it's a read operation (implied by '获取'), returns detailed information including content and stats, and supports multiple input formats. However, it lacks details on error handling, rate limits, authentication needs, or response structure. For a tool with no annotations, this is adequate but leaves gaps in operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and concise. It starts with a clear purpose statement, then lists supported input formats with examples, and finally enumerates the returned information in a bulleted list. Every sentence adds value without redundancy, making it easy for an agent to parse quickly.

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?

Given the tool's moderate complexity (3 parameters, no output schema, no annotations), the description is fairly complete. It covers the purpose, input methods, and return data. However, without an output schema, it could benefit from more detail on the response format (e.g., structure of '文档完整内容'). Still, it provides sufficient context for basic usage, justifying a score above minimum viable.

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 all three parameters thoroughly. The description adds value by explaining the two input formats and how parameters interact (e.g., '如果提供了 docUrl 则忽略此参数' for namespace), but doesn't provide additional semantic meaning beyond what's in the schema. This meets the baseline for high 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 clearly states the tool's purpose: '获取文档的详细信息' (get detailed information about a document) from Yuque. It specifies the resource (Yuque document) and the action (retrieve details). However, it doesn't explicitly differentiate from sibling tools like 'get-yuque-toc' (which likely gets table of contents) or 'list-yuque-docs' (which likely lists documents), so it's not a perfect 5.

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 description provides usage context by detailing two supported input formats (URL vs. namespace+slug), which implies when to use each format. However, it doesn't explicitly state when to use this tool versus alternatives like 'search-yuque-docs' or 'get-yuque-toc', nor does it mention any prerequisites or exclusions. This leaves some ambiguity for the agent in selecting between siblings.

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

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