Skip to main content
Glama

yuque_web_get_doc

Fetch a Yuque document's full detail and body content by ID or slug with its book ID. Retrieve markdown, lake, or lakesheet content plus rich fields like permissions and join tokens.

Instructions

Cookie-based: Get full document detail with body/content. Supports markdown/lake/lakesheet formats. Returns richer fields than v2 get_doc (54 fields including abilities, joinToken, etc.). No membership required, no Token rate limiting. GET /api/docs/{id}?book_id={book_id}. id supports doc slug; book_id supports namespace/slug (e.g. group/book_slug) or numeric. 详见 references/api/web_doc_api.md

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": {
      "id": "<id>",
      "book_id": "<book_id>"
    },
    "name": "yuque_web_get_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesDocument ID or slug (required)
rawNoReturn raw full JSON (default false, returns trimmed fields)
book_idYesRepository ID, namespace or slug (e.g. group/book_slug), or numeric (required)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.0.1
    • changedInput schema / properties / book_id / description
      Previous value: -"Repository ID, namespace or slug (e.g. yehuoshun/utuif2), or numeric (required)"New value: +"Repository ID, namespace or slug (e.g. group/book_slug), or numeric (required)"
  2. Changed2 schema fields changedv4.0.0
    • changedInput schema / properties / book_id / description
      Previous value: -"Repository ID (numeric, required)"New value: +"Repository ID, namespace or slug (e.g. yehuoshun/utuif2), or numeric (required)"
    • changedInput schema / properties / id / description
      Previous value: -"Document ID (numeric, required)"New value: +"Document ID or slug (required)"
  3. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the authentication model (cookie-based), the absence of membership and token rate limiting, the supported content formats (markdown/lake/lakesheet), and the shape of the response (full body plus 54 fields). It omits error behavior and cookie-expiry failure modes, which matter for a cookie-authenticated read.

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 most decision-relevant facts (verb, content returned, auth model, no rate limit) are front-loaded before the endpoint and reference-file citation. It is dense but nearly every clause carries information; the trailing '详见 references/api/web_doc_api.md' and literal route are mildly cost-heavy for an agent that cannot read that file.

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?

There is no output schema, and the description compensates by describing the return payload (full body/content, 54 fields, raw-vs-trimmed behavior implied via the raw flag reference). Combined with explicit auth requirements and format support, it gives an agent enough to call correctly; only error/edge-case handling is unaddressed.

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 coverage is 100%, so both required parameters are already documented in the schema. The description's notes on id-as-slug and book_id-as-namespace/slug largely restate the schema wording, adding no new formatting or edge-case guidance (e.g. how numeric-vs-slug values are disambiguated); the 3 baseline 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 opening clause gives a specific verb and resource ('Get full document detail with body/content') and explicitly contrasts itself with the sibling 'v2 get_doc' by claiming richer fields (54 fields including abilities, joinToken). An agent can distinguish this from yuque_get_doc without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It supplies decision-relevant context — 'No membership required, no Token rate limiting' and 'Returns richer fields than v2 get_doc' — which implicitly steers an agent toward this tool when the token-based v2 route is unavailable or richer data is needed. It stops short of an explicit when-not-to-use statement or a direct routing rule such as 'prefer yuque_get_doc for lightweight metadata'.

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