Skip to main content
Glama
yuque
by yuque

yuque_get_doc

Retrieve the full content of a document from a Yuque repository by specifying the repo ID and document ID or slug, with optional format selection (markdown, lake, or html).

Instructions

Get a specific document with full content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_idYesRepo ID or namespace (e.g., "mygroup/mybook")
doc_idYesDocument ID or slug
formatNoContent format to read. Omit or use markdown to read through the YMD-compatible flow; use lake/html for the legacy document API.
include_lakeNoInclude raw Lake format body (preserves Mermaid source code, diagrams, etc.)
Behavior2/5

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

No annotations provided, so the description bears full responsibility. It lacks details on behavioral traits such as authorization needs, rate limits, error handling, or what 'full content' entails (e.g., if it returns metadata only). The schema parameters cover format, but the description doesn't mention them.

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, efficient sentence with no fluff. It is front-loaded and clear, though slightly more context (e.g., what 'full content' refers to) would improve it without sacrificing conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is complete enough for a simple get operation, but since there is no output schema, some return format information would be helpful. Given the tool's complexity and the richness of sibling tools, a bit more context (e.g., typical use case) would improve completeness.

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% with clear parameter descriptions. The description adds the concept of 'full content' but doesn't enhance parameter understanding beyond the schema. Baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Get', the resource 'specific document', and the outcome 'with full content'. It effectively distinguishes from sibling tools that list documents, get notes, or other resources.

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 implies the tool is for retrieving a single document, but it doesn't specify when to use this over siblings like yuque_get_note or yuque_get_book. No explicit guidance on context or prerequisites.

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